|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dexterind.gopigo.utils.Commands
public class Commands
| 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 |
|---|
public static final int FWD
public static final int MOTOR_FWD
public static final int BWD
public static final int MOTOR_BWD
public static final int LEFT
public static final int LEFT_ROT
public static final int RIGHT
public static final int RIGHT_ROT
public static final int STOP
public static final int ISPD
public static final int DSPD
public static final int M1
public static final int M2
public static final int VOLT
public static final int US
public static final int LED
public static final int SERVO
public static final int ENC_TGT
public static final int FW_VER
public static final int EN_ENC
public static final int DIS_ENC
public static final int READ_ENC_STATUS
public static final int EN_SERVO
public static final int DIS_SERVO
public static final int SET_LEFT_SPEED
public static final int SET_RIGHT_SPEED
public static final int EN_COM_TIMEOUT
public static final int DIS_COM_TIMEOUT
public static final int TIMEOUT_STATUS
public static final int ENC_READ
public static final int TRIM_TEST
public static final int TRIM_WRITE
public static final int TRIM_READ
public static final int DIGITAL_WRITE
public static final int DIGITAL_READ
public static final int ANALOG_READ
public static final int ANALOG_WRITE
public static final int PIN_MODE
public static final int IR_READ
public static final int IR_RECV_PIN
public static final int UNUSED
| Constructor Detail |
|---|
public Commands()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||