tankkk
Dependencies: USBHost USBHostXpad mbed-rtos mbed
Revision 9:789350244478, committed 2014-12-06
- Comitter:
- hotwheelharry
- Date:
- Sat Dec 06 05:20:03 2014 +0000
- Parent:
- 8:36b2ef26a0b1
- Commit message:
- stop at atartup
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 36b2ef26a0b1 -r 789350244478 main.cpp --- a/main.cpp Sat Dec 06 05:15:25 2014 +0000 +++ b/main.cpp Sat Dec 06 05:20:03 2014 +0000 @@ -105,6 +105,7 @@ if(wasdisconnected){ //pc.printf("Controller Status >> Connected!\r\n"); controller.led( USBHostXpad::LED1_ON ); + tank.SetMotors(0.0,0.0); //stop, wait for controller to reconnect for a second. wasdisconnected = false; } @@ -203,10 +204,6 @@ pc.baud(19200); pc.printf("TANK\r\n"); - //int i = 0; - //while(i++ < 10){ - // audio.playMario(); - //} Thread t_controller(thread_controller);