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.
Fork of 2015robot_main by
manualMode.h
- Committer:
- DeguNaoto
- Date:
- 2015-09-23
- Revision:
- 36:fd04196b4b34
- Parent:
- 35:2db63dec2a67
- Child:
- 44:315d5960f18c
File content as of revision 36:fd04196b4b34:
#ifndef MANUALMODE_H #define MANUALMODE_H void manualMovePs3() { if(analog_lx>10) { Move_l(-0.4); Move_r(0.4); } else if(analog_lx<-10) { Move_l(0.4); Move_r(-0.4); } else { if(analog_ly>10) { Move_l(-0.4); Move_r(-0.4); } else if(analog_ly<-10) { Move_l(0.4); Move_r(0.4); } else { Move_l(0.0); Move_r(0.0); } } } void manualPs3() { if(circle) { if(edge_circle) edge_circle=0,autoflag=1,Indicator4=1,IndicatorAuto=0; } else if(triangle) Motor_swing=1; else if(square) { if(edge_square) { shootEsaka(); /*edge_square=0; sendData(1,6);*/ } } else if(cross) Motor_swing=0; else if(r1) sendData(1,4); else if(l1) sendData(1,5); } #endif /*manualMode.h*/