www.nexusrobot.com Robot Kits manual
117
if(Omni.getCarStat()!=Omni4WD::STAT_LEFT) Omni.setCarSlow2Stop(300);
Omni.setCarLeft(0);
Omni.setCarSpeedMMPS(speedMMPS, 300);
}
void turnRight(unsigned int speedMMPS){
if(Omni.getCarStat()!=Omni4WD::STAT_RIGHT) Omni.setCarSlow2Stop(300);
Omni.setCarRight(0);
Omni.setCarSpeedMMPS(speedMMPS, 300);
}
void rotateRight(unsigned int speedMMPS){
if(Omni.getCarStat()!=Omni4WD::STAT_ROTATERIGHT) Omni.setCarSlow2Stop(300);
Omni.setCarRotateRight(0);
Omni.setCarSpeedMMPS(speedMMPS, 300);
}
void rotateLeft(unsigned int speedMMPS){
if(Omni.getCarStat()!=Omni4WD::STAT_ROTATELEFT) Omni.setCarSlow2Stop(300);
Omni.setCarRotateLeft(0);
Omni.setCarSpeedMMPS(speedMMPS, 300);
}
void allStop(unsigned int speedMMPS){
if(Omni.getCarStat()!=Omni4WD::STAT_STOP) Omni.setCarSlow2Stop(300);
Omni.setCarStop();
}
void backOff(unsigned int speedMMPS){
}
//void(*motion[8])(unsigned int speedMMPS) = {goAhead, turnLeft, rotateRight, rotateLeft,
//turnRight, goAhead, rotateRight, backOff};
void(*motion[16])(unsigned int speedMMPS) = {goAhead, turnRight, goAhead, turnRight,
turnLeft, goAhead, turnLeft, goAhead,
rotateRight, rotateRight, turnRight, turnRight,
Summary of Contents for Nexus Robot
Page 74: ...www nexusrobot com Robot Kits manual 70 Sample Wiring Diagram for RB004 2WD V2 0...
Page 92: ...www nexusrobot com Robot Kits manual 88 Diagram for Omni3WD_V1 0...
Page 96: ...www nexusrobot com Robot Kits manual 92 Diagram_Omni3WD_V3 3...
Page 118: ...www nexusrobot com Robot Kits manual 114 Sample Wiring Diagram for RB011 Mecanum 4WD V4 1...