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.
Dependents: Cansat2016_v1 Cansat2016_v1
Diff: Cansat2016.cpp
- Revision:
- 2:6fa291470764
- Parent:
- 1:dad5c9475937
--- a/Cansat2016.cpp Wed Jul 27 11:46:36 2016 +0000
+++ b/Cansat2016.cpp Sat Aug 27 01:53:43 2016 +0000
@@ -153,17 +153,17 @@
// right turn
if(action == 'r') {
- _motor.changeSpeed(1, speed, 1, speed-64);
+ _motor.changeSpeed(1, speed, 1, 64);
}
// light turn
if(action == 'l') {
- _motor.changeSpeed(1, speed-64, 1, speed);
+ _motor.changeSpeed(1, 64, 1, speed);
}
// back
if(action == 'b') {
- _motor.changeSpeed(2, speed, 2, speed-64);
+ _motor.changeSpeed(2, 96, 2, 96);
}
// stop