com.dexterind.gopigo.utils
Class Commands

java.lang.Object
  extended by com.dexterind.gopigo.utils.Commands

public class Commands
extends java.lang.Object


Field Summary
static int ANALOG_READ
          Analog read on a port.
static int ANALOG_WRITE
          Analog read on a port.
static int BWD
          Move backward with PID.
static int DIGITAL_READ
          Digital read on a port.
static int DIGITAL_WRITE
          Digital write on a port.
static int DIS_COM_TIMEOUT
          Disable the communication timeout.
static int DIS_ENC
          Disable the encoders.
static int DIS_SERVO
          Disable the servo.
static int DSPD
          Decrease the speed by 10.
static int EN_COM_TIMEOUT
          Enable the communication timeout.
static int EN_ENC
          Enable the encoders.
static int EN_SERVO
          Enable the servo.
static int ENC_READ
          Read the encoder values.
static int ENC_TGT
          Set the encoder targeting.
static int FW_VER
          Read the firmware version.
static int FWD
          Move forward with PID.
static int IR_READ
          InfraRed receiver read.
static int IR_RECV_PIN
          InfraRed set pin.
static int ISPD
          Increase the speed by 10.
static int LED
          Turn ON/OFF the LEDs.
static int LEFT
          Turn left by turning off one motor.
static int LEFT_ROT
          Rotate left by running both motors in opposite direction.
static int M1
          Control motor1.
static int M2
          Control motor2.
static int MOTOR_BWD
          Move backward without PID.
static int MOTOR_FWD
          Move forward without PID.
static int PIN_MODE
          Set up the pin mode on a port.
static int READ_ENC_STATUS
          Read the encoder status.
static int RIGHT
          Turn right by turning off one motor.
static int RIGHT_ROT
          Rotate right by running both motors in opposite direction.
static int SERVO
          Rotate the servo.
static int SET_LEFT_SPEED
          Set the speed of the right motor.
static int SET_RIGHT_SPEED
          Set the speed of the left motor.
static int STOP
          Stop the GoPiGo.
static int TIMEOUT_STATUS
          Read the timeout status.
static int TRIM_READ
          Read the trim values.
static int TRIM_TEST
          Test the trim values.
static int TRIM_WRITE
          Write the trim values.
static int UNUSED
          This allows us to be more specific about which commands contain unused ints
static int US
          Read the distance from the ultrasonic sensor.
static int VOLT
          Read the voltage of the batteries.
 
Constructor Summary
Commands()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FWD

public static final int FWD
Move forward with PID.

See Also:
Constant Field Values

MOTOR_FWD

public static final int MOTOR_FWD
Move forward without PID.

See Also:
Constant Field Values

BWD

public static final int BWD
Move backward with PID.

See Also:
Constant Field Values

MOTOR_BWD

public static final int MOTOR_BWD
Move backward without PID.

See Also:
Constant Field Values

LEFT

public static final int LEFT
Turn left by turning off one motor.

See Also:
Constant Field Values

LEFT_ROT

public static final int LEFT_ROT
Rotate left by running both motors in opposite direction.

See Also:
Constant Field Values

RIGHT

public static final int RIGHT
Turn right by turning off one motor.

See Also:
Constant Field Values

RIGHT_ROT

public static final int RIGHT_ROT
Rotate right by running both motors in opposite direction.

See Also:
Constant Field Values

STOP

public static final int STOP
Stop the GoPiGo.

See Also:
Constant Field Values

ISPD

public static final int ISPD
Increase the speed by 10.

See Also:
Constant Field Values

DSPD

public static final int DSPD
Decrease the speed by 10.

See Also:
Constant Field Values

M1

public static final int M1
Control motor1.

See Also:
Constant Field Values

M2

public static final int M2
Control motor2.

See Also:
Constant Field Values

VOLT

public static final int VOLT
Read the voltage of the batteries.

See Also:
Constant Field Values

US

public static final int US
Read the distance from the ultrasonic sensor.

See Also:
Constant Field Values

LED

public static final int LED
Turn ON/OFF the LEDs.

See Also:
Constant Field Values

SERVO

public static final int SERVO
Rotate the servo.

See Also:
Constant Field Values

ENC_TGT

public static final int ENC_TGT
Set the encoder targeting.

See Also:
Constant Field Values

FW_VER

public static final int FW_VER
Read the firmware version.

See Also:
Constant Field Values

EN_ENC

public static final int EN_ENC
Enable the encoders.

See Also:
Constant Field Values

DIS_ENC

public static final int DIS_ENC
Disable the encoders.

See Also:
Constant Field Values

READ_ENC_STATUS

public static final int READ_ENC_STATUS
Read the encoder status.

See Also:
Constant Field Values

EN_SERVO

public static final int EN_SERVO
Enable the servo.

See Also:
Constant Field Values

DIS_SERVO

public static final int DIS_SERVO
Disable the servo.

See Also:
Constant Field Values

SET_LEFT_SPEED

public static final int SET_LEFT_SPEED
Set the speed of the right motor.

See Also:
Constant Field Values

SET_RIGHT_SPEED

public static final int SET_RIGHT_SPEED
Set the speed of the left motor.

See Also:
Constant Field Values

EN_COM_TIMEOUT

public static final int EN_COM_TIMEOUT
Enable the communication timeout.

See Also:
Constant Field Values

DIS_COM_TIMEOUT

public static final int DIS_COM_TIMEOUT
Disable the communication timeout.

See Also:
Constant Field Values

TIMEOUT_STATUS

public static final int TIMEOUT_STATUS
Read the timeout status.

See Also:
Constant Field Values

ENC_READ

public static final int ENC_READ
Read the encoder values.

See Also:
Constant Field Values

TRIM_TEST

public static final int TRIM_TEST
Test the trim values.

See Also:
Constant Field Values

TRIM_WRITE

public static final int TRIM_WRITE
Write the trim values.

See Also:
Constant Field Values

TRIM_READ

public static final int TRIM_READ
Read the trim values.

See Also:
Constant Field Values

DIGITAL_WRITE

public static final int DIGITAL_WRITE
Digital write on a port.

See Also:
Constant Field Values

DIGITAL_READ

public static final int DIGITAL_READ
Digital read on a port.

See Also:
Constant Field Values

ANALOG_READ

public static final int ANALOG_READ
Analog read on a port.

See Also:
Constant Field Values

ANALOG_WRITE

public static final int ANALOG_WRITE
Analog read on a port.

See Also:
Constant Field Values

PIN_MODE

public static final int PIN_MODE
Set up the pin mode on a port.

See Also:
Constant Field Values

IR_READ

public static final int IR_READ
InfraRed receiver read.

See Also:
Constant Field Values

IR_RECV_PIN

public static final int IR_RECV_PIN
InfraRed set pin.

See Also:
Constant Field Values

UNUSED

public static final int UNUSED
This allows us to be more specific about which commands contain unused ints

See Also:
Constant Field Values
Constructor Detail

Commands

public Commands()