forked from hoantv/VNWheel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WheelConfig.h
38 lines (32 loc) · 827 Bytes
/
WheelConfig.h
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
#ifndef WHEELCONFIG_h
#define WHEELCONFIG_h
#include <Arduino.h>
#define PULSE_DIR 1
#define PWM_POS_NEG 2
/* Initial config defines */
#define InitialConfigNotDone 0
class WheelConfig {
public:
WheelConfig(void);
~WheelConfig(void);
uint32_t configCPR;
uint16_t configMaxAngle;
bool configInverted;
bool configUsePinZ;
bool configResetEncoderPosition;
uint8_t controlMode;
void SetDefault();
uint8_t constantGainConfig;
uint8_t rampGainConfig;
uint8_t squareGainConfig;
uint8_t sinGainConfig;
uint8_t triangleGainConfig;
uint8_t sawToothDownGainConfig;
uint8_t sawToothUpGainConfig;
uint8_t springGainConfig;
uint8_t damperGainConfig;
uint8_t inertiaGainConfig;
uint8_t frictionGainConfig;
uint8_t totalGainConfig;
};
#endif