Chaitanya Devarakonda
/
challenge-ChaiUpdated
My personal forkk
Diff: main.cpp
- Revision:
- 14:aaa46855f00a
- Parent:
- 11:fcf00823f24a
- Child:
- 15:4976d145fbd9
diff -r a9793222af20 -r aaa46855f00a main.cpp --- a/main.cpp Wed Apr 27 09:04:11 2022 +0000 +++ b/main.cpp Wed Apr 27 11:17:56 2022 +0000 @@ -301,7 +301,14 @@ systemOn = false; // WILL STOP ABOVE HERE NEXT LOOP pc.printf("Start Switch is Off\r\n"); } - + + ////Default Brakes on when speed is 0 + //if(dashboard.getCurrentSpeed() ==0 && motor1.throttle == 0) + //{ + // brakeValve32 = 0;//(PF_2) + // brakeValve22 = 0;//(PG_1) + //} + /////////////////////Left it commented out for now as unsure of the motor throttle check or to use the set speed variable //Set foward if (driveMode != 0 && remote.forward == 0) { driveMode = 0;