svoe

Dependencies:   mbed mbed-STM32F103C8T6 MPU6050_1

Revision:
7:9e4a997ad23a
Parent:
6:6e89cdc3db92
--- a/main.cpp	Sun May 21 12:04:00 2017 +0000
+++ b/main.cpp	Sun May 21 17:15:32 2017 +0000
@@ -15,10 +15,11 @@
 int main() {
     system_init();
 //    usb_serial.printf("I am a USB serial port\r\n");
-    stop(); wait(2);
+    wait(2); 
+    stop();
     gyro_x=0, gyro_y=0, gyro_angle=0, gyro_v=0, gyro_s=0;
     play(21);
-    go(1);
+    //go(1);
     external_command = 0xff;
 
 /*    MPU6050 gyro(PB_9,PB_8);
@@ -38,8 +39,8 @@
 */    
     while(1){
         while(realtime_flag == 0){}
-        if(external_command != 0) command_process();
-        //wait_ms(40); //blocking
+        //if(external_command != 0) command_process();
+        //wait_ms(30); //blocking
         gyro_process(); //doesn't work in interrupt
         realtime_flag = 0;
         }