Matti Borchers / Mbed 2 deprecated mbed_amf_controlsystem_iO_copy

Dependencies:   mbed-rtos mbed

Fork of mbed_amf_controlsystem_iO_copy by Oliver Wenzel

Revision:
14:48cdd880ca1a
Parent:
13:34f7f783ad24
Child:
15:141de2b5646d
--- a/main.cpp	Fri Feb 05 16:06:44 2016 +0000
+++ b/main.cpp	Sun Feb 07 10:41:16 2016 +0000
@@ -72,6 +72,14 @@
             ptr = (char*)receive_buffer;
             x = 22;
         }
+        if(rc_valid != 0)
+        {
+            serialMinnow.putc('a');//Aktiviert
+            }
+            else
+            {
+                serialMinnow.putc('d');//Deaktiviert
+                }
         
         //Thread::wait(100);
     }
@@ -101,7 +109,7 @@
     Thread machineDirectionControl(serial_thread);
     Thread hearbeatThread(hearbeat_thread);
     
-    RtosTimer machine_direction_control_timer(redirect_quadrature_controller);
+    RtosTimer machine_direction_control_timer(redirect_machine_direction_controller);
     RtosTimer quadrature_control_timer(redirect_quadrature_controller);
 
     // Konfiguration AMF-IMU