with class

Dependencies:   ISR_Mini-explorer mbed

Fork of VirtualForces by Georgios Tsamis

Files at this revision

API Documentation at this revision

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);