public class ModbotCommandCenter extends ExtendedFourWheelMovement
Constructor and Description |
---|
ModbotCommandCenter(MotorConnection connection,
ModBot myBot) |
Modifier and Type | Method and Description |
---|---|
boolean |
destinationReached() |
void |
gotoCoord(VisionCoordinate vc)
Navigates the bot to (x,y) using its built in navigator.
|
void |
left(double power)
bot translates left
|
void |
right(double power)
bot translates right
|
boolean |
sendKV(java.lang.String key,
java.lang.String value)
Sends an arbitrary key and value over the associated bot's connection.
|
boolean |
setWheelPower(double fl,
double fr,
double bl,
double br)
Sets the wheel power for all four wheels.
|
backward, clockwise, counterClockwise, forward, stop
public ModbotCommandCenter(MotorConnection connection, ModBot myBot)
public boolean destinationReached()
public void gotoCoord(VisionCoordinate vc)
vc
- The coordinate to go to, under the canonical vision system.public void left(double power)
power
- the amount of power that should be supplied to the wheels. It should be between 0 and 100public void right(double power)
power
- the amount of power that should be supplied to the wheels. It should be between 0 and 100public boolean setWheelPower(double fl, double fr, double bl, double br)
FourWheelMovement
fl
- power to set the front left wheelfr
- power to set the front right wheelbl
- power to set the back left wheelbr
- power to set the back right wheelpublic boolean sendKV(java.lang.String key, java.lang.String value)
CommandCenter
key
- A key to identify the type of commandvalue
- The value of the command