now with PID controler XXXD
Dependencies: HIDScope MODSERIAL QEI biquadFilter mbed
Fork of another_try_from_scratch_on_emg by
Diff: main.cpp
- Revision:
- 36:959f4719ab3a
- Parent:
- 22:eb8411807cca
--- a/main.cpp Tue Oct 25 13:40:55 2016 +0000 +++ b/main.cpp Fri Oct 28 11:37:33 2016 +0000 @@ -16,8 +16,8 @@ //define variables //other int onoffsignal_rightarm=0; // on/off signal: 1; biceps activation, 0: nothing, -1, triceps activation -double cut_off_value_biceps =0.06; //gespecificeerd door floortje -double cut_off_value_triceps=-0.03; //gespecificeerd door floortje +double cut_off_value_biceps =0.04; //gespecificeerd door floortje +double cut_off_value_triceps=-0.02; //gespecificeerd door floortje double signal_right_arm; //biceps arm 1, right arm @@ -103,7 +103,7 @@ { if (onoffsignal_rightarm==1) { - richting_motor1 = -1; //motordirection (ccw) + richting_motor1 = 0; //motordirection (ccw) pwm_motor1 = 1; //motorspeed 1 }