forked from spascual90/Fenix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOrder.cpp
More file actions
42 lines (35 loc) · 804 Bytes
/
Copy pathOrder.cpp
File metadata and controls
42 lines (35 loc) · 804 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* Order.cpp
*
* Created on: 20 oct. 2018
* Author: Sergio
*/
#include "Order.h"
SERIALorder::SERIALorder() {
};
SERIALorder::~SERIALorder() {
};
e_actions SERIALorder::get_order() const {
return _order;
};
void SERIALorder::set_order(e_actions order) {
_order=order;
};
void SERIALorder::reset () {
APinfo.isValid=NO;
APinfo.flag = {false, false, false, false, false, false};
PIDgain.isValid=NO;
PIDgain.flag = {{false,false,false}, false, false};
instParam.isValid=NO;
instParam.flag = {false, false, false, false, false, false};
APB.isValid=NO;
APB.flag = {false,false,false,false,false,false,false};
HDM.isValid=NO;
HDM.flag = {false};
VWR.isValid=NO;
VWR.flag = {false,false};
calibrate_py.isValid=NO;
isValid=NO;
isRequest= false;
set_order(NO_INSTRUCTION);
}