unit test for brushless motors using a potentiometer and a castle creations esc with 0.5 center duty cycle
Fork of brushlessmotor by
Diff: main.cpp
- Revision:
- 3:605f216167f6
- Parent:
- 2:040b8c8f4f92
diff -r 040b8c8f4f92 -r 605f216167f6 main.cpp --- a/main.cpp Thu Jul 30 20:36:00 2015 +0000 +++ b/main.cpp Fri Feb 26 14:35:02 2016 +0000 @@ -45,17 +45,17 @@ { t.start(); - MainController mainCtrl; + MainController mC; - mainCtrl.start(); + mC.start(); while(true) { - pc.printf("frq: %.4f, amp: %.4f, yaw: %.4f, pit: %.4f, dut: %.4f, t: %.4f\n", - mainCtrl.getFrequency(), mainCtrl.getAmplitude(), mainCtrl.getYaw(), mainCtrl.getPitch(), mainCtrl.getDutyCycle(), t.read()); + pc.printf("amp: %.4f, dutyCycle %.4f, t: %.4f\n", + mC.getAmplitude(), mC.getDutyCycle(), t.read()); wait_ms(900); } //t.stop(); - //mainCtrl.stop(); + //mC.stop(); }