Railway Challenge
/
challenge
Uncommenting of part that allow supercaps to charge up from the batteries
Diff: main.cpp
- Revision:
- 5:1911475688a8
- Parent:
- 4:d9279fc3a8fb
- Child:
- 6:d0ba4c659e9c
diff -r d9279fc3a8fb -r 1911475688a8 main.cpp --- a/main.cpp Wed Apr 13 08:42:27 2022 +0000 +++ b/main.cpp Wed Apr 13 08:57:28 2022 +0000 @@ -29,9 +29,9 @@ //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 << " " << "Emergency Stop Status: " << emergencyStopActive << " " << "Drive Mode: " << driveMode << " " ; // + "Current Speed: " +(int)dashboard.currentSpeed; string disp=displayline.str(); - pc.printf("%s",disp); + pc.printf("%s \n",disp); } void startupHealthCheck() {