![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
All the lab works are here!
Dependencies: ISR_Mini-explorer mbed
Fork of VirtualForces 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);