Inverted Pendulum / Mbed 2 deprecated IP-Interface

Dependencies:   mbed QEI

Revision:
14:67a4e886387f
Parent:
11:ed9539245ea0
Child:
15:a0b5c4306246
diff -r 65392ee77300 -r 67a4e886387f main.cpp
--- a/main.cpp	Mon Nov 14 21:00:01 2016 +0000
+++ b/main.cpp	Wed Nov 16 00:18:37 2016 +0000
@@ -49,7 +49,7 @@
 void calibrate_pendulum(){
     encoder.reset();
     while(1){
-        printf("voltage %%: %f  pulse: %i", pend.get_voltage(), encoder.getPulses());
+        printf("voltage %%: %f  pulse: %i \r\n", pend.get_voltage(), encoder.getPulses());
     }
 }
 void move_pulses(int pulses){ // find number of pulses from the encoder going from one end to the other.
@@ -64,7 +64,7 @@
         } 
 }
 int main() {
-    test_pendulum();
+    calibrate_pendulum();
     //motor.step_clockwise(100,1500);
     //motor.step_clockwise(100,1000);
     //motor.step_clockwise(100,700);