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:
- 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