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.
Diff: main.cpp
- Revision:
- 1:4f52a001926a
- Parent:
- 0:9ab1097149ca
- Child:
- 2:b5031bb5303e
--- a/main.cpp Thu May 22 14:50:22 2014 +0000
+++ b/main.cpp Thu May 22 14:52:13 2014 +0000
@@ -50,7 +50,7 @@
thinggy.calibrated_sensor(sensor);
}
thinggy.calibrated_sensor(sensor);
- returned = (sensor[1] + sensor[2] + sensor[3])/3;
+ returned = (sensor[1] + sensor[2]*2 + sensor[3])/4;
}//while returned <= 220
// Curves and straightaways
@@ -82,7 +82,7 @@
}
}
thinggy.calibrated_sensor(sensor);
- returned = (sensor[1] + sensor[2] + sensor[3])/3;
+ returned = (sensor[1] + sensor[2]*2 + sensor[3])/4;
}//while returned > 220
}//while(1)