2016/07/23
Dependents: Cansat2016_v1 Cansat2016_v1
Revision 2:6fa291470764, committed 2016-08-27
- Comitter:
- s1210160
- Date:
- Sat Aug 27 01:53:43 2016 +0000
- Parent:
- 1:dad5c9475937
- Commit message:
- 2016/08/27
Changed in this revision
| Cansat2016.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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