MPUとHMCでうごくかもver

Dependencies:   ConfigFile SDFileSystem mbed

Fork of LAURUS_program by hiroya taura

Revision:
22:3caa2983bf1d
Parent:
21:d417708e84a8
Child:
23:79cdc1432160
diff -r d417708e84a8 -r 3caa2983bf1d main.cpp
--- a/main.cpp	Tue Jun 23 14:59:21 2015 +0000
+++ b/main.cpp	Tue Jun 23 15:23:38 2015 +0000
@@ -166,6 +166,11 @@
     if(!mpu.init()) AbortWithMsg("mpu6050 Initialize Error !!");        // mpu6050初期化
     if(!hmc.init()) AbortWithMsg("hmc5883l Initialize Error !!");       // hmc5883l初期化
 
+
+    //Config読み取り
+    while(!LoadConfig());
+    xbee.printf("target(%.5f, %.5f)\r\n", target_x, target_y);
+    
     // SDカード初期化
     while(!SD_Init());
 
@@ -175,10 +180,6 @@
     // 各種ベクトルの初期化
     VectorsInit();
 
-    //Config読み取り
-    while(!LoadConfig());
-    xbee.printf("target(%.5f, %.5f)\r\n", target_x, target_y);
-
     ticker.attach(&DataUpdate, dt);         // 割り込み有効化(Freq = 0.01fなので、10msおきの割り込み)
     NVIC_SetPriority(TIM5_IRQn, 5);