LSIと磁気センサーの統合用プログラムです。

Dependencies:   ATP3012 mbed TB6612FNG HMC6352 US015 getGPS

Committer:
ushiroji
Date:
Wed Oct 27 12:33:10 2021 +0000
Revision:
2:82902be97576
Parent:
0:85414455b681
test

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ushiroji 0:85414455b681 1 // ライブラリ
ushiroji 0:85414455b681 2 #include "mbed.h"
ushiroji 0:85414455b681 3
ushiroji 0:85414455b681 4 // 自作関数
ushiroji 0:85414455b681 5 #include "Function.h"
ushiroji 0:85414455b681 6 #include "speak.h"
ushiroji 0:85414455b681 7
ushiroji 0:85414455b681 8
ushiroji 0:85414455b681 9 int main() {
ushiroji 0:85414455b681 10 double direction; // 次CPへの向き
ushiroji 0:85414455b681 11
ushiroji 0:85414455b681 12 while (1) {
ushiroji 0:85414455b681 13 speak();
ushiroji 0:85414455b681 14 direction = AngleGet();
ushiroji 0:85414455b681 15 pc.printf("direction=%f\n", direction);
ushiroji 2:82902be97576 16 }
ushiroji 2:82902be97576 17 }