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.
Omuni.cpp
- Committer:
- Hase_jun
- Date:
- 2018-09-12
- Revision:
- 0:2a0c62e53e9c
File content as of revision 0:2a0c62e53e9c:
#include "Omuni.h" #include "mbed.h" void motor_ff(){//フルスピード前 motor(0,CCW,0.3); motor(1,CW,0.3); motor(2,CW,0.6); } void motor_fs(){//スロウスピード前 motor(0,CCW,0.2); motor(1,CCW,0.2); motor(2,CW,0.4); } void motor_lf(){//フルスピード左 motor(0,CCW,0.5); motor(1,CCW,0.5); motor(2,STOP,0); } void motor_ls(){//スロウスピード左 motor(0,CCW,0.3); motor(1,CCW,0.3); motor(2,STOP,0); } void motor_bf(){//フルスピード後ろ motor(0,CCW,0.3); motor(1,CCW,0.3); motor(2,CCW,0.6); } void motor_bs(){//スロウスピード後ろ motor(0,CCW,0.2); motor(1,CCW,0.2); motor(2,CCW,0.4); } void motor_dr(){//斜め右上に進む motor(0,STOP,0); motor(1,CW,0.3); motor(2,CW,0.3); } void motor_dl(){//斜め左上に進む motor(0,CW,0.3); motor(1,STOP,0); motor(2,CW,0.3); } void motor_rf(){//フルスピード右 motor(0,CCW,0.5); motor(1,CW,0.5); motor(2,STOP,0); } void motor_s(){//ストップ motor(0,STOP,0); motor(1,STOP,0); motor(2,STOP,0); }