svoe

Dependencies:   mbed mbed-STM32F103C8T6 MPU6050_1

Branch:
svoe
Revision:
22:14e85f2068c7
Parent:
15:960b922433d1
--- a/wifi.h	Sat Mar 23 16:39:46 2019 +0000
+++ b/wifi.h	Tue Jul 23 12:55:23 2019 +0000
@@ -9,9 +9,9 @@
     int command = int(external_command/64);
     int value = external_command & 0x3f;
     switch (command){
-        case 0: target.path = (float) value/100; break; //target.x = (float) value/100; break;
-        case 1: radius = (float) value; break; //target.y = (float) value/100; break;
-        case 2: target.azimuth = (value * 6 - 180)*pi/180; break;
+        case 0: x_prop = value * 10; break; //target.x = (float) value/100; break;
+        case 1: x_diff = value * 10; break; //target.y = (float) value/100; break;
+        case 2: balance_prop = value / 10; break;
         case 3: balance_diff = value; break; 
         }