Updated references from MPU6050 to BNO080
Dependencies: QEI2 PID Watchdog VL53L1X_Filter BNOWrapper ros_lib_kinetic
Diff: wheelchair.h
- Revision:
- 26:662693bd7f31
- Parent:
- 21:3489cffad196
- Child:
- 27:da718b990837
diff -r fb99cce6b9b5 -r 662693bd7f31 wheelchair.h --- a/wheelchair.h Fri Apr 19 23:06:53 2019 +0000 +++ b/wheelchair.h Thu Jun 27 16:32:12 2019 +0000 @@ -18,7 +18,7 @@ #define def (2.5f/3.3f) //Default axis on joystick to stay neutral; used on x and y axis #define high 3.3f/3.3f //High power on joystick; used on x and y axis #define low (1.7f/3.3f) //Low power on joystick; used on x and y axis -#define offset .035f //Joystick adjustment to be able to go straight. Chair dependent on manufactoring precision +#define offset .03f //Joystick adjustment to be able to go straight. Chair dependent on manufactoring precision #define process .1 //Defines default time delay in seconds /* Pin plug in for Nucleo-L432KC */ @@ -27,8 +27,8 @@ #define Encoder1 D7 //*Digital In Pull Up Pin */ #define Encoder2 D8 #define Diameter 31.75 //Diameter of encoder wheel -#define maxDeceleration 130 - +#define maxDecelerationSlow 120 +#define maxDecelerationFast 30 #define ToFSensorNum 12