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
main.cpp
- Committer:
- username16248
- Date:
- 2016-04-01
- Revision:
- 7:4f5cd0051db0
- Parent:
- 6:bb86e2999be0
- Parent:
- 3:6ab4e8e3aa02
File content as of revision 7:4f5cd0051db0:
#include "mbed.h" #include "pin_file.h" #include "spi_nucleo.h" #include "transfer.h" #include <string.h> int main(){ transfer(); spiInit(); while(pushed_number==0){ //手動 spi_mbed(); //コントローラーからの信号を読み取る if(RR==1){ //右旋回の関数 } else if(LR==1){ //左旋回の関数 } else{ //読み取った値speed_X,speed_Yを速度制御にぶち込む } } while(pushed_number==1){ //自動 getGyro(); //自己位置 //エアシリンダー } }