BMT M9 groep 7 / Mbed 2 deprecated Motor_EMG_FinalV1_aangepastePIDwaarden

Dependencies:   HIDScope MODSERIAL QEI biquadFilter mbed

Fork of Motor_EMG_FinalV1 by BMT M9 groep 7

Files at this revision

API Documentation at this revision

Comitter:
Rvs94
Date:
Thu Oct 22 10:59:03 2015 +0000
Parent:
2:7873c44b0568
Child:
4:92a3b38a5302
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
--- 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;