-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathWheelConfig.cpp
More file actions
36 lines (31 loc) · 821 Bytes
/
Copy pathWheelConfig.cpp
File metadata and controls
36 lines (31 loc) · 821 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
#include "WheelConfig.h"
WheelConfig::WheelConfig() {
SetDefault();
}
WheelConfig::~WheelConfig() {
// Auto-generated destructor stub
}
void WheelConfig::SetDefault() {
// reset everything to zero here.
// pointers to objects have to be deleted.
configCPR = 1334;
// configCPR = 10000;
configMaxAngle = (uint16_t) 900;
configInverted = false;
configUsePinZ = false;
configResetEncoderPosition = false;
controlMode = PULSE_DIR;
// controlMode = PWM_POS_NEG;
constantGainConfig = 100;
rampGainConfig = 100;;
squareGainConfig = 100;;
sinGainConfig = 100;
triangleGainConfig = 100;;
sawToothDownGainConfig = 100;;
sawToothUpGainConfig = 100;;
springGainConfig = 100;
damperGainConfig = 100;
inertiaGainConfig = 100;;
frictionGainConfig = 100;;
totalGainConfig = 100;;
}