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: moves/moves.cpp
- Revision:
- 23:ef274a44a867
- Parent:
- 22:0ed9de464f40
- Child:
- 25:c740e6fd5dab
diff -r 0ed9de464f40 -r ef274a44a867 moves/moves.cpp --- a/moves/moves.cpp Fri May 03 09:34:05 2019 +0000 +++ b/moves/moves.cpp Fri May 03 09:56:10 2019 +0000 @@ -10,7 +10,7 @@ PIDcontroller pid_lo(0.01, 0.000, 0.000); PIDcontroller pid_li(0.01, 0.000, 0.000); //Kp.Ki,Kd Motor motor_lo(&motor_lo_f, &motor_lo_b), - motor_li(&motor_li_f, &motor_li_b); + motor_li(&motor_li_f, &motor_li_b); OneLeg leg_lo, leg_li; Robot robot; @@ -138,6 +138,8 @@ void reset() { + motor_lo.setDutyLimit(0.3); + motor_li.setDutyLimit(0.3); while(switch_lo.read()) { motor_lo.output(0.3); }