Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- 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);