Railway Challenge
/
challenge
Uncommenting of part that allow supercaps to charge up from the batteries
Diff: main.cpp
- Revision:
- 11:fcf00823f24a
- Parent:
- 10:8415866239cc
- Child:
- 14:aaa46855f00a
--- a/main.cpp Fri Apr 22 13:30:32 2022 +0000 +++ b/main.cpp Fri Apr 22 14:06:49 2022 +0000 @@ -29,10 +29,10 @@ //Display Function for data logger void DisplaySerial(){ std::stringstream displayline; - displayline << "Blackbox# " << " Motor Accelerator: " << motorAccelerator << " Brake 3/2: " << brakeValve32 << " Brake 2/2: " << brakeValve22 << " Speed: " << dashboard.currentSpeed " Drive Mode: " << driveMode; + displayline << "Blackbox# " << " Motor Accelerator: " << motorAccelerator << " Brake 3/2: " << brakeValve32 << " Brake 2/2: " << brakeValve22 << " Speed: " << dashboard.currentSpeed << " Distance: " << dashboard.currentDistance << " 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); + pc.printf("%s \n",disp.c_str()); } //Emergency Stop