Werkende PID controller met EMG aansturing.
Dependencies: HIDScope MODSERIAL QEI biquadFilter mbed
Fork of Motor_EMG_V2 by
Revision 3:86ca263a83dc, committed 2015-10-22
- Comitter:
- Rvs94
- Date:
- Thu Oct 22 10:59:03 2015 +0000
- Parent:
- 2:7873c44b0568
- Commit message:
- Thresholds aangepast gezien die nog verkeerd stonden in motor aansturing
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7873c44b0568 -r 86ca263a83dc main.cpp --- 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;