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.
Dependencies: HIDScope QEI biquadFilter mbed
Fork of EMG_Controller_5 by
Diff: main.cpp
- Revision:
- 14:a27de0ddf09f
- Parent:
- 13:0adbf6a5de37
- Child:
- 15:4cd14d429ad8
diff -r 0adbf6a5de37 -r a27de0ddf09f main.cpp --- a/main.cpp Fri Oct 28 11:58:56 2016 +0000 +++ b/main.cpp Fri Oct 28 12:40:06 2016 +0000 @@ -91,6 +91,8 @@ state_resettime_value = 1; } void change_scoopstate(){ + Motor1_pwm.write(0); + Motor2_pwm.write(0); switch(scoopstate){ case STATE_MOVE: scoopstate = STATE_GRAB; @@ -162,7 +164,7 @@ break; case STATE_GRAB: Lift_Controller(); - control_servo(Norm_EMG_0); + control_servo(Norm_EMG_1); LED_STATE_GRAB = 1; LED_STATE_MOVE = 0; break;