Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed SDFileSystem ConfigFile
Diff: main.cpp
- Revision:
- 22:3caa2983bf1d
- Parent:
- 21:d417708e84a8
- Child:
- 23:79cdc1432160
--- 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);