Inverted Pendulum / Mbed 2 deprecated IP-Interface

Dependencies:   mbed QEI

Revision:
15:a0b5c4306246
Parent:
13:ab5a6ab6c492
Parent:
14:67a4e886387f
Child:
18:5a1c351094d2
--- a/main.cpp	Wed Nov 16 00:01:15 2016 +0000
+++ b/main.cpp	Wed Nov 16 00:21:32 2016 +0000
@@ -73,7 +73,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.
@@ -88,7 +88,7 @@
         } 
 }
 int main() {
-    test_pendulum();
+    calibrate_pendulum();
     //motor.step_clockwise(100,1500);
     //motor.step_clockwise(100,1000);
     //motor.step_clockwise(100,700);