refactor - change constants
This commit is contained in:
@@ -170,7 +170,7 @@ class MoveControl {
|
||||
|
||||
uint8_t delay = 20;
|
||||
uint8_t overTimeCounter = 0;
|
||||
uint8_t overTimeMax = 10;
|
||||
uint8_t overTimeMax = 100;
|
||||
int8_t rawPowerLeft = 0;
|
||||
int8_t rawPowerRight = 0;
|
||||
uint32_t lastMillis = 0;
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
#define M_DIR_11 12
|
||||
#define M_DIR_12 27
|
||||
#define M_PWM_1 13
|
||||
#define M_ENCODE_1A 33
|
||||
#define M_ENCODE_1B 32
|
||||
#define M_ENCODE_1A 32
|
||||
#define M_ENCODE_1B 33
|
||||
//Right Motor
|
||||
#define M_DIR_21 23
|
||||
#define M_DIR_22 14
|
||||
#define M_PWM_2 22
|
||||
#define M_ENCODE_2A 26
|
||||
#define M_ENCODE_2B 25
|
||||
#define M_ENCODE_2A 25
|
||||
#define M_ENCODE_2B 26
|
||||
|
||||
// PID config
|
||||
#define PID_OUT_MIN -100
|
||||
|
||||
Reference in New Issue
Block a user