svoe

Dependencies:   mbed mbed-STM32F103C8T6 MPU6050_1

Revision:
6:6e89cdc3db92
Parent:
4:904b737ef08a
Child:
7:9e4a997ad23a
Child:
8:891e4f54e9e2
--- a/motion.h	Sun May 14 11:30:26 2017 +0000
+++ b/motion.h	Sun May 21 12:04:00 2017 +0000
@@ -1,7 +1,9 @@
-//float current_speed;//cm/s
+                                     //3 main parameters of the movement:
+//float accel (defined in motor.h)
+float speed = 100;//cm/s
+float radius = 10;
+
 float half_width = 8.5;
-float radius = 10;
-float speed = 100;//cm/s
 float current_x, current_y;
 float current_path, target_path;//cm
 float current_angle, target_angle;//deg
@@ -49,6 +51,7 @@
     stop_flag = 1;
     motor_busy = 1;
     while(motor_busy == 1){}
+    target_path = current_path;
     //motor_enable = 0;
     }