Programma om motor 1 aan te sturen

Dependencies:   Encoder MODSERIAL mbed-dsp mbed

Fork of motor1aansturing by BMT M9 Groep01

Revision:
23:29428dd42769
Parent:
22:93d32c57bac8
Child:
24:543c8ee9bca1
--- a/main.cpp	Fri Oct 10 12:38:01 2014 +0000
+++ b/main.cpp	Fri Oct 10 12:40:41 2014 +0000
@@ -70,7 +70,7 @@
             }
             else //waarschijnlijk niet nodig want hij kan hier niet komen als readEMG nul is
             {
-                toestand = TERUGKEREN                }
+                toestand = TERUGKEREN;
             }
         }
         
@@ -80,7 +80,7 @@
     //----------------------------------------------------------------------new_pwm = getal, opletten dat deze tijdens het slaan niet kan veranderen!
         if (toestand != SLAAN)//is dit de beste manier en plaats voor dit?
         {
-            setpoint = 0
+            setpoint = 0;
         }
         new_pwm = pid(setpoint, motor1.getPosition());
         clamp(&new_pwm, -1,1);