
first commit
Diff: driving.h
- Revision:
- 13:0091da3021df
- Parent:
- 11:210a33ee774f
- Child:
- 14:eb9c58c0f8cd
--- a/driving.h Tue Oct 26 14:02:20 2021 +0000 +++ b/driving.h Tue Oct 26 14:07:48 2021 +0000 @@ -56,11 +56,14 @@ bool brakeLeftBool = false; bool brakeRightBool = false; +volatile bool are_brakes_activated; // Used for debugging void disable_brakes(void){ + are_brakes_activated = false; brakeLeft=0; brakeRight=0; }; void enable_brakes(void) { + are_brakes_activated = true; brakeLeft = 1; brakeRight = 1; };