
主にオムニです。
Fork of asimawari by
Revision 1:b15569582801, committed 2017-10-24
- Comitter:
- yuto17320508
- Date:
- Tue Oct 24 15:57:28 2017 +0000
- Parent:
- 0:1787ed4e6e61
- Child:
- 2:0a99389df632
- Commit message:
- a; ;
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HCSR04.lib Tue Oct 24 15:57:28 2017 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/prabhuvd/code/HCSR04/#71da0dbf4400
--- a/atai.h Sat Oct 21 07:57:16 2017 +0000 +++ b/atai.h Tue Oct 24 15:57:28 2017 +0000 @@ -41,4 +41,3 @@ float attach_timing=0.05f; -
--- a/main.cpp Sat Oct 21 07:57:16 2017 +0000 +++ b/main.cpp Tue Oct 24 15:57:28 2017 +0000 @@ -9,6 +9,8 @@ #include "photo.h" //フォトリフレクタ #include "sokuteirinn.h" //測定輪の値の取得 (x,y) #include "sokkyo.h" //測距 +#include "hcsr04.h" //超音波センサ + #include "jyairo.h" //ジャイロ #include "motor_move.h" //モーターを動かす関数 #include "x.y_theta_dainyuu.h" //x,y方向をθに変換してモーターを呼び出す
--- a/pin_define.h Sat Oct 21 07:57:16 2017 +0000 +++ b/pin_define.h Tue Oct 24 15:57:28 2017 +0000 @@ -1,4 +1,6 @@ +Serial pc(SERIAL_TV, SERIAL_RX) - - +//超音波センサ用 +HCSR04 usensor(,); +DigitaOut myled(LED1); //センサの動作確認 \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tyouonnpa.h Tue Oct 24 15:57:28 2017 +0000 @@ -0,0 +1,7 @@ + + +usensor.start(); +wait_ms(500); +unsigned int dist = usensor.get_dist_cm(); +pc.printf("cm:%ld¥r¥n",dist); +myled = !myled; \ No newline at end of file