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-26
- Revision:
- 48:64d005c70df2
- Parent:
- 47:46db7f076cea
- Child:
- 49:9276fda93084
File content as of revision 48:64d005c70df2:
#ifndef MANUALMODE_H
#define MANUALMODE_H
void manualMovePs3()
{
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 {
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 {
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) targSwingRadVelocity = swingspeed;
else if(square) {
if(edge_square) {
edge_square=0;
sendData(1,6);
}
}
else if(cross) targSwingRadVelocity = 0.0;
else if(r1) sendData(1,4);
else if(l1) sendData(1,5);
}
#endif /*manualMode.h*/

