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: MMA8451Q TSI mbed
Fork of snakecontroller by
Diff: main.cpp
- Revision:
- 7:292f2de3c013
- Parent:
- 6:44bac63d4d66
- Child:
- 8:93190b81ceca
--- a/main.cpp Thu Jun 09 14:34:08 2016 +0000 +++ b/main.cpp Thu Jun 09 14:38:05 2016 +0000 @@ -15,9 +15,6 @@ DigitalOut backwardhigh(PTA2); //Test LED for backward DigitalOut backwardlow(PTD4); -float accX=acc.getAccX(); //Measure acceleration in X direction -float accY=acc.getAccY(); //Measure acceleration in Y direction - int Direction; //2 bit number to describe direction 0 forward assigned CW bool right; //Right or left? right = 1
