Programma om motor 1 aan te sturen

Dependencies:   Encoder MODSERIAL mbed-dsp mbed

Fork of motor1aansturing by BMT M9 Groep01

Revision:
3:864137a5f702
Parent:
2:ef0fa691e77e
Child:
4:2a3b8c562f4a
--- a/main.cpp	Fri Oct 03 10:15:30 2014 +0000
+++ b/main.cpp	Fri Oct 03 11:10:46 2014 +0000
@@ -34,9 +34,9 @@
         float new_pwm;
         while(!looptimerflag);
         looptimerflag = false;
-        //---------------------------------------------------------leest potentiometer (?), schaalt tussen 0 en 1------------------------------------
+        //---------------------------------------------------------leest potentiometer (?), schaalt tussen 0 en 1-------------------------------------
         setpoint = (potmeter.read()-.5)*500;  
-        //----------------------------------------------------------------------new_pwm = getal?.....------------------------------------------------
+        //----------------------------------------------------------------------new_pwm = getal?.....-------------------------------------------------
         new_pwm = pid(setpoint, motor1.getPosition());
         clamp(&new_pwm, -1,1);
         //-------------------------------------------------------------------------------------output motor richting----------------------------------