now with PID controler XXXD

Dependencies:   HIDScope MODSERIAL QEI biquadFilter mbed

Fork of another_try_from_scratch_on_emg by Daniqe Kottelenberg

Files at this revision

API Documentation at this revision

Comitter:
sivuu
Date:
Thu Nov 03 12:18:53 2016 +0000
Parent:
53:6b91f69fa2dc
Commit message:
voordat er gestest wordt zonder PID controler

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Nov 03 11:20:43 2016 +0000
+++ b/main.cpp	Thu Nov 03 12:18:53 2016 +0000
@@ -196,8 +196,8 @@
     if (onoffsignal_biceps==-1 && switch_signal%2==0){ //switch even       //right biceps contracted{
          d_ref = d_ref + w_ref * Ts;
     }
-         if (d_ref > 10 ){
-            d_ref = 10;
+         if (d_ref > 8){
+            d_ref = 8;
             //d_ref_const_cw = 1;
         }
     else{ 
@@ -207,8 +207,8 @@
     if (onoffsignal_biceps==1 && switch_signal%2==0){ //switch even    //left biceps contracted{
         d_ref = d_ref - w_ref * Ts;
     }
-        if (d_ref < -10){
-        d_ref = -10;
+        if (d_ref < -8){
+        d_ref = -8;
         
     }
     else{