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: Robot.cpp
- Revision:
- 1:3122058b3a2e
- Parent:
- 0:283fc48ef873
--- a/Robot.cpp Wed Aug 26 06:21:11 2020 +0000
+++ b/Robot.cpp Mon Aug 31 15:09:14 2020 +0000
@@ -83,8 +83,8 @@
}
void Robot::move_speed(uint8_t _dir, float _vel){
- LM.setSpeed(100);//(DESIRED_MICRO_STEPS_PER_SEC * 10 *(vel / 100));
- RM.setSpeed(100);//(DESIRED_MICRO_STEPS_PER_SEC * 10 * (vel / 100));
+ LM.setSpeed(DESIRED_MICRO_STEPS_PER_SEC * (_vel / 100));
+ RM.setSpeed(DESIRED_MICRO_STEPS_PER_SEC * (_vel / 100));
}
void Robot::turn_deg(uint8_t _dir, float _ang) {