Control program for FzeroX controller via USBHID interface.
Dependencies: Radio USBDevice mbed
Fork of FzeroXcontroller by
Revision 2:6c9d5fec13e3, committed 2014-10-07
- Comitter:
- alexandertyler
- Date:
- Tue Oct 07 18:28:36 2014 +0000
- Parent:
- 1:ec00f549a691
- Commit message:
- Last updates
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r ec00f549a691 -r 6c9d5fec13e3 main.cpp --- a/main.cpp Sun Sep 28 20:11:23 2014 +0000 +++ b/main.cpp Tue Oct 07 18:28:36 2014 +0000 @@ -11,7 +11,7 @@ PwmOut thruster1(D2); PwmOut thruster2(D3); -PwmOut vibMotor(D4); +DigitalOut vibMotor(D4); PwmOut onboardRed(LED_RED); PwmOut onboardGreen(LED_GREEN); PwmOut onboardBlue(LED_BLUE); @@ -76,7 +76,7 @@ t.start(); boost.mode(PullUp); drift.mode(PullUp); - vibMotor = 1.0f; + vibMotor = 0; joystick.hat(hat);