svoe

Dependencies:   mbed mbed-STM32F103C8T6 MPU6050_1

Revision:
7:9e4a997ad23a
Parent:
6:6e89cdc3db92
--- a/realtime.h	Sun May 21 12:04:00 2017 +0000
+++ b/realtime.h	Sun May 21 17:15:32 2017 +0000
@@ -15,7 +15,7 @@
 //pc.printf("%3.1f - %3.1f ; %3.1f - %3.1f ; %d\n",target_path,current_path,target_angle,current_angle,motor_busy); //be careful in interrupt
     
     if(motor_busy == 1) {
-        if(stop_flag == 1) {skorost(0,0);skorost(1,0);if(abs(motor_speed[0])<1) motor_busy = 0;} //Stop with accel
+        if(stop_flag == 1) {skorost(0,0);skorost(1,0);if(abs(motor_speed[0])<1) motor_busy = 1;} //Stop with accel
         else { //motion
             if(infinite_flag == 1){skorost(1,speed*(1-half_width/radius));skorost(0,speed*(1+half_width/radius));}
             else{