Thomas Burgers / Mbed 2 deprecated ZZ-TheChenneRobot

Dependencies:   Encoder HIDScope MODSERIAL QEI biquadFilter mbed

Revision:
16:a8d2c721cf56
Parent:
15:f029351f1f3a
Child:
17:aa167ab3cf75
--- a/main.cpp	Thu Oct 08 10:18:50 2015 +0000
+++ b/main.cpp	Thu Oct 08 10:26:03 2015 +0000
@@ -85,7 +85,7 @@
     // Sample_Ticker.attach(&get_sample, (float)1/Fs); HIDSCOPE sample Ticker
     
     pc.printf("Start infinite loop \n\r");
-    wait (3);                                                  // Rest before starting system
+    wait (3);                                                  // Wait before starting system
     
     //INFINITE LOOP
     while(1) 
@@ -178,12 +178,13 @@
 //        if(sample_go) // HIDSCOPE input => sample_go nu nog niet nodig opzich  // BLINK LEDS TOEVOEGEN
 //        {
 //            //sample_filter; (filter function zie EMG filter working script)
-//            scope.set(0,u); // HIDSCOPE channel 0 :
-//            scope.set(1,y); // HIDSCOPE channel 1 : 
+//            scope.set(0,reference_turn); // HIDSCOPE channel 0 : Current Reference
+//            scope.set(0,position_turn); // HIDSCOPE channel 0 : Position_turn
+//            scope.set(1,pwm_to_motor_turn); // HIDSCOPE channel 1 : Pwm_to_motor_turn
 //            scope.send();   // Send channel info to HIDSCOPE
 //            sample_go = 0;
 //        } 
-        debug_led = !debug_led;
+        debug_led = !debug_led; // should flicker with freq 50 Hz
     }
 }
 }