Definitieve motorscript in aanbouw

Dependencies:   HIDScope MODSERIAL QEI biquadFilter mbed

Fork of frdm_Motor_V2_2 by Robert Schulte

Revision:
17:9b667e6e1290
Parent:
16:5b729bd56155
Child:
18:6f71bb91b8bd
--- a/main.cpp	Wed Sep 30 11:49:02 2015 +0000
+++ b/main.cpp	Wed Sep 30 15:20:14 2015 +0000
@@ -96,10 +96,18 @@
        if(c == 'r')
         {
            m2_ref = m2_ref + 5;
+           if (m2_ref > 90)
+           {
+               m2_ref = 90;
+            }
         }
         if(c == 'f')
         {
             m2_ref = m2_ref - 5;
+            if (m2_ref < -90)
+            {
+                m2_ref = -90;
+            }
         }
     }