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: QEI2 chair_BNO055 PID Watchdog VL53L1X_Filter ros_lib_kinetic
Revision 32:fb26baa75d44, committed 2019-07-01
- Comitter:
- t1jain
- Date:
- Mon Jul 01 23:35:39 2019 +0000
- Parent:
- 31:06f2362caf12
- Child:
- 33:92afe7ffdecc
- Commit message:
- Removed Print statements
Changed in this revision
| wheelchair.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/wheelchair.cpp Mon Jul 01 23:20:48 2019 +0000
+++ b/wheelchair.cpp Mon Jul 01 23:35:39 2019 +0000
@@ -51,10 +51,10 @@
for(int i = 0; i < 6; i++) // reads from the ToF Sensors
{
ToFV[i] = (*(ToF+i))->readFromOneSensor();
- out->printf("%d ", ToFV[i]);
+ //out->printf("%d ", ToFV[i]);
}
- out->printf("\r\n");
+ //out->printf("\r\n");
k++;
@@ -71,13 +71,13 @@
out->printf("\r\n");*/
// statistics LFTStats(ToFDataPointer1, 99, 1);
// statistics RFTStats(ToFDataPointer1, 99, 1);
- out->printf("Right Mean: %f ", RFTStats.mean());
- out->printf("Std Dev: % f", RFTStats.stdev());
+ //out->printf("Right Mean: %f ", RFTStats.mean());
+ //out->printf("Std Dev: % f", RFTStats.stdev());
outlierToF[0] = LFTStats.mean() + 2*LFTStats.stdev();
- out->printf("Left Mean: %f ", LFTStats.mean());
- out->printf("Std Dev: %f ", LFTStats.stdev());
+ //out->printf("Left Mean: %f ", LFTStats.mean());
+ //out->printf("Std Dev: %f ", LFTStats.stdev());
outlierToF[1] = RFTStats.mean() + 2*RFTStats.stdev();
- out->printf("New outliers: %f, %f\n", outlierToF[0], outlierToF[1]);
+ //out->printf("New outliers: %f, %f\n", outlierToF[0], outlierToF[1]);