
Werkende PID controller met EMG aansturing.
Dependencies: HIDScope MODSERIAL QEI biquadFilter mbed
Fork of Motor_EMG_V2 by
Diff: main.cpp
- Revision:
- 3:86ca263a83dc
- Parent:
- 2:7873c44b0568
--- a/main.cpp Thu Oct 22 10:57:12 2015 +0000 +++ b/main.cpp Thu Oct 22 10:59:03 2015 +0000 @@ -321,7 +321,7 @@ LedR = LedB = 1; LedG = 0; - if ((EMG_right_MAF >= Threshold1) && (EMG_left_MAF <= Threshold1)) //if(c == 'r') // + if ((EMG_right_MAF >= Threshold3) && (EMG_left_MAF <= Threshold1)) //if(c == 'r') // { m2_ref = m2_ref + Stapgrootte; m1_ref = m1_ref - Stapgrootte; @@ -332,7 +332,7 @@ } wait(0.1); } - if((EMG_right_MAF < Threshold1) && (EMG_left_MAF > Threshold1)) //if (c == 'f') // + if((EMG_right_MAF < Threshold3) && (EMG_left_MAF > Threshold1)) //if (c == 'f') // { m2_ref = m2_ref - Stapgrootte; m1_ref = m1_ref + Stapgrootte;