![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
TRR2018 omar
Fork of biniou by
Diff: stateMachines.h
- Revision:
- 16:63690703b5b6
- Parent:
- 15:129f205ff030
- Child:
- 17:8c465656eea4
--- a/stateMachines.h Tue Sep 11 12:28:37 2018 +0000 +++ b/stateMachines.h Tue Sep 11 14:49:55 2018 +0000 @@ -1,7 +1,10 @@ #include "mbed.h" #include <stdint.h> -//#define DEBUG 3 +#//define DEBUG 3 +#define MAX_PULSE_WIDTH_FOR_TACHY 0.00165 +#define BRAKING_PWM 0.00135 +#define INITAL_PULSE_SPEED 0.00159 #define NB_ECHANTILLONS_IR 4 #define NB_ECHANTILLONS_LIDAR 4 @@ -26,7 +29,8 @@ typedef enum{ UNDER_SPEED, OVER_SPEED, - AT_SPEED + AT_SPEED, + BRAKING }THROTTLE_ST; typedef enum{