Railway Challenge
/
challenge
Uncommenting of part that allow supercaps to charge up from the batteries
Diff: main.cpp
- Revision:
- 10:8415866239cc
- Parent:
- 9:d1998035418b
- Child:
- 11:fcf00823f24a
--- a/main.cpp Wed Apr 20 15:55:43 2022 +0000 +++ b/main.cpp Fri Apr 22 13:30:32 2022 +0000 @@ -29,7 +29,8 @@ //Display Function for data logger void DisplaySerial(){ std::stringstream displayline; - displayline << "Blackbox# " << " Motor Accelerator: " << motorAccelerator << " " << "Emergency Stop Status: " << emergencyStopActive << " " << "Drive Mode: " << driveMode << " " ; // + "Current Speed: " +(int)dashboard.currentSpeed; + displayline << "Blackbox# " << " Motor Accelerator: " << motorAccelerator << " Brake 3/2: " << brakeValve32 << " Brake 2/2: " << brakeValve22 << " Speed: " << dashboard.currentSpeed " Drive Mode: " << driveMode; + //displayline << "Blackbox# " << " Motor Accelerator: " << motorAccelerator << " " << "Emergency Stop Status: " << emergencyStopActive << " " << "Drive Mode: " << driveMode << " " ; // + "Current Speed: " +(int)dashboard.currentSpeed; string disp=displayline.str(); pc.printf("%s \n",disp); }