春ロボ 2班 2017
/
asimawari
主にオムニです。
Fork of asimawari by
main.cpp@3:73625a6c9750, 2017-10-26 (annotated)
- Committer:
- yuto17320508
- Date:
- Thu Oct 26 13:10:28 2017 +0000
- Revision:
- 3:73625a6c9750
- Parent:
- 2:0a99389df632
a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yuto17320508 | 0:1787ed4e6e61 | 1 | #include "mbed.h" |
yuto17320508 | 0:1787ed4e6e61 | 2 | #include "math.h" |
yuto17320508 | 0:1787ed4e6e61 | 3 | #define Pi 3.14159 |
yuto17320508 | 0:1787ed4e6e61 | 4 | #include "algorithm" |
yuto17320508 | 0:1787ed4e6e61 | 5 | #include "EC.h" |
yuto17320508 | 2:0a99389df632 | 6 | #include "hcsr04.h" |
yuto17320508 | 0:1787ed4e6e61 | 7 | #include "pin_define.h" |
yuto17320508 | 0:1787ed4e6e61 | 8 | #include "atai.h" //値 |
yuto17320508 | 0:1787ed4e6e61 | 9 | |
yuto17320508 | 2:0a99389df632 | 10 | //測距用 |
yuto17320508 | 0:1787ed4e6e61 | 11 | #include "photo.h" //フォトリフレクタ |
yuto17320508 | 0:1787ed4e6e61 | 12 | #include "sokuteirinn.h" //測定輪の値の取得 (x,y) |
yuto17320508 | 2:0a99389df632 | 13 | #include "tyouonnpa.h" //超音波センサの値の取得 (distX,distY) |
yuto17320508 | 1:b15569582801 | 14 | |
yuto17320508 | 0:1787ed4e6e61 | 15 | #include "jyairo.h" //ジャイロ |
yuto17320508 | 2:0a99389df632 | 16 | |
yuto17320508 | 2:0a99389df632 | 17 | |
yuto17320508 | 2:0a99389df632 | 18 | //走行用 |
yuto17320508 | 0:1787ed4e6e61 | 19 | #include "motor_move.h" //モーターを動かす関数 |
yuto17320508 | 0:1787ed4e6e61 | 20 | #include "x.y_theta_dainyuu.h" //x,y方向をθに変換してモーターを呼び出す |
yuto17320508 | 0:1787ed4e6e61 | 21 | #include "max_determine.h" //方向による出力変化の補正 |
yuto17320508 | 0:1787ed4e6e61 | 22 | |
yuto17320508 | 2:0a99389df632 | 23 | int main() |
yuto17320508 | 2:0a99389df632 | 24 | { |
yuto17320508 | 2:0a99389df632 | 25 | while(1) { |
yuto17320508 | 2:0a99389df632 | 26 | |
yuto17320508 | 2:0a99389df632 | 27 | |
yuto17320508 | 2:0a99389df632 | 28 | |
yuto17320508 | 2:0a99389df632 | 29 | } |
yuto17320508 | 0:1787ed4e6e61 | 30 | |
yuto17320508 | 2:0a99389df632 | 31 | |
yuto17320508 | 2:0a99389df632 | 32 | } |