vaLLEY TRY

Dependencies:   mbed

Revision:
9:699054d8510b
Parent:
7:3a755ebe4eaf
Child:
10:32c65de8ff37
--- a/ActiveCell.h	Fri Apr 05 16:26:58 2019 +0000
+++ b/ActiveCell.h	Mon Apr 08 21:25:14 2019 +0000
@@ -60,7 +60,7 @@
         distance = sqrt(pow((float)abs(x0 - xt), 2) + pow((float)abs(y0 - yt), 2));
         
         //////angle/////////////
-        angle = atan2((float)yt-y0,(float)xt-x0)*180/3.14159265358979323846;
+        angle = atan2((float)yt-y0,(float)xt-x0)*180/3.14159265358979323846f;
         sectorK=angle/res;
         if(sectorK<0)
             sectorK=30+sectorK;