![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
tankkk
Dependencies: USBHost USBHostXpad mbed-rtos mbed
Diff: main.cpp
- Revision:
- 9:789350244478
- Parent:
- 8:36b2ef26a0b1
--- 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);