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
Fork of circle_war_ver_A_NUCLEO by
main.cpp
- Committer:
- baba2357
- Date:
- 2016-03-29
- Revision:
- 3:6ab4e8e3aa02
- Parent:
- 2:bed6b204e64c
- Child:
- 7:4f5cd0051db0
File content as of revision 3:6ab4e8e3aa02:
#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();
//自己位置
//エアシリンダー
}
}
