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: ISR_Mini-explorer mbed
Fork of GoToPointWithAngle by
Diff: main.cpp
- Revision:
- 30:95d8d3e2b81b
- Parent:
- 29:224e9e686f7b
- Child:
- 31:352be78e1aad
diff -r 224e9e686f7b -r 95d8d3e2b81b main.cpp
--- a/main.cpp Wed Apr 26 16:58:57 2017 +0000
+++ b/main.cpp Wed Apr 26 17:06:00 2017 +0000
@@ -156,7 +156,7 @@
//TODO check that it's aurelien's work
float target_x = (rand()%(int)(HEIGHT_ARENA*10))/10;//for decimal precision
float target_y = (rand()%(int)(WIDTH_ARENA*10))/10;
- float target_angle = ((float)(rand()%31416)-15708)/10000.0;
+ float target_angle = 2*((float)(rand()%31416)-15708)/10000.0;
//TODO comment that
//pc.printf("\n\r targ_X=%f", target_x);
