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:
- 16:174daf81eea0
- Parent:
- 15:d14d385d37e2
- Child:
- 18:9dd72e417c60
diff -r d14d385d37e2 -r 174daf81eea0 main.cpp
--- a/main.cpp Sat Jun 20 16:39:11 2015 +0000
+++ b/main.cpp Sun Jun 21 15:45:38 2015 +0000
@@ -50,8 +50,8 @@
ConfigFile cfg; // ConfigFile
PwmOut servoL(PB_6), servoR(PC_7); // サーボ用PWM出力
AnalogIn optSensor(PC_0); // 照度センサ用アナログ入力
-AnalogIn servoVcc(PA_0); // バッテリー電圧監視用アナログ入力(サーボ用)
-AnalogIn logicVcc(PA_1); // バッテリー電圧監視用アナログ入力(ロジック用)
+AnalogIn servoVcc(PA_1); // バッテリー電圧監視用アナログ入力(サーボ用)
+AnalogIn logicVcc(PA_0); // バッテリー電圧監視用アナログ入力(ロジック用)
DigitalIn paraSensor(PB_0); // パラフォイルに繋がる(予定)の物理スイッチ
Ticker INT_timer; // 割り込みタイマー
Timer timer; // 時間計測用タイマー
@@ -259,7 +259,7 @@
float lv = (float)logicVcc.read_u16() * ADC_LSB_TO_V * 2.0f; // ロジック電源電圧
// データをmicroSDに保存し、XBeeでPCへ送信する
- sprintf(data, "%.3f,%.3f,%.3f, %.3f,%.3f,%.3f, %.3f,%.3f,%.3f, %.3f,%d\r\n",
+ sprintf(data, "%.3f,%.3f,%.3f, %.3f,%.5f,%.5f, %.3f,%.3f,%.3f, %.3f,%d\r\n",
yaw, pitch, roll,
press, gms.longitude, gms.latitude,
sv, lv, vrt_acc,