PID controller test code

Dependencies:   mbed Encoder HIDScope

Revision:
2:323606a75d64
Parent:
1:64ec36ba6e76
Child:
3:c4c2d42cedd4
--- a/main.cpp	Tue Oct 13 13:26:12 2015 +0000
+++ b/main.cpp	Tue Oct 13 13:42:53 2015 +0000
@@ -2,8 +2,8 @@
 #include "encoder.h"
 
 Ticker control_ticker;
-PwmOut pwm_motor1(D4); //onderste motor
-DigitalOut dir_motor1(D5);
+PwmOut pwm_motor1(D5); //onderste motor
+DigitalOut dir_motor1(D4);
 AnalogIn potmeter1(A4);
 Encoder encoder1(D13,D12,true);
 double pos_1;
@@ -57,7 +57,7 @@
 
 int main()
 {
-    control_ticker.attach(m1_Controller, 0.01);
-
-    while(1);
+    control_ticker.attach(&m1_Controller, 0.01);
+    
+    while(1){}
 }
\ No newline at end of file