
Mapping for TP2
Dependencies: ISR_Mini-explorer mbed
Fork of GoToPointWithAngle by
Revision 30:95d8d3e2b81b, committed 2017-04-26
- Comitter:
- geotsam
- Date:
- Wed Apr 26 17:06:00 2017 +0000
- Parent:
- 29:224e9e686f7b
- Child:
- 31:352be78e1aad
- Commit message:
- target_angle now is double
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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);