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.
Dependencies: USBHost USBHostXpad mbed-rtos mbed
Diff: main.cpp
- Revision:
- 4:868a07a5496f
- Parent:
- 3:c1620db50a75
- Child:
- 6:e905d3ec8545
--- a/main.cpp Wed Nov 26 22:53:15 2014 +0000
+++ b/main.cpp Wed Nov 26 23:35:46 2014 +0000
@@ -105,7 +105,8 @@
//left joystick controls
float y = xpadNormalizeAnalog(controlState.analogLeftY);
- float x = -1.0 * y / abs(y) * xpadNormalizeAnalog(controlState.analogLeftX);
+ float x = -1.0 * xpadNormalizeAnalog(controlState.analogLeftX);
+ //float x = -1.0 * y / abs(y) * xpadNormalizeAnalog(controlState.analogLeftX);
if(ir > 0.75){ // on collision, stop tank
controller.rumble(255,255);
