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
Diff: main.cpp
- Revision:
- 7:4f5cd0051db0
- Parent:
- 6:bb86e2999be0
- Parent:
- 3:6ab4e8e3aa02
--- a/main.cpp Fri Apr 01 05:58:11 2016 +0000 +++ b/main.cpp Fri Apr 01 06:15:24 2016 +0000 @@ -6,12 +6,25 @@ int main(){ - void transfer(); - while(pushed_number==0){ - + transfer(); + spiInit(); + while(pushed_number==0){ //手動 + spi_mbed(); //コントローラーからの信号を読み取る + if(RR==1){ + //右旋回の関数 + } + else if(LR==1){ + //左旋回の関数 + } + else{ + //読み取った値speed_X,speed_Yを速度制御にぶち込む + } } - while(pushed_number==1){ + while(pushed_number==1){ //自動 + getGyro(); + //自己位置 + //エアシリンダー } - } + }