Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: millis
Diff: main.cpp
- Revision:
- 29:2ed4d9c309fc
- Parent:
- 28:1086791972d0
- Child:
- 30:c65bf90e8f47
--- a/main.cpp Wed Jun 15 13:36:11 2022 +0000
+++ b/main.cpp Wed Jun 15 13:38:05 2022 +0000
@@ -64,6 +64,7 @@
motor1.throttle(0.0f);
brakeValve32 = 0;
brakeValve22 = 0;
+ //inParkMode=true;
//brakes1.BrakesOn();
}
else {//REGEN BRAKING
@@ -345,7 +346,8 @@
motor1.throttle(0);
}
////Park Mode
- if (driveMode == 2) { //place in park mode if selected by driver
+ if (driveMode == 2) {
+ brakeControl(4); //place in park mode if selected by driver
if (inParkMode == false) {
pc.printf("Train in park mode.\r\n"); //why?
}