|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStructure
edu.wpi.first.wpilibj.communication.FRCCommonControlData
public final class FRCCommonControlData
Structure for data exchanged between the robot and the driver station.
Field Summary | |
---|---|
short |
analog1
Driver Station analog input |
short |
analog2
Driver Station analog input |
short |
analog3
Driver Station analog input |
short |
analog4
Driver Station analog input |
static short |
AUTONOMOUS_BIT
|
static short |
CHECK_VERSIONS_BIT
|
short |
control
The control mode e.g. |
short |
dsDigitalIn
The state of the digital inputs on the ds |
char |
dsID_Alliance
Which alliance the robot is on |
char |
dsID_Position
The position of the controls on the alliance station wall. |
static short |
ENABLED_BIT
|
static short |
ESTOP_BIT
|
static short |
FMS_ATTATCHED
|
int |
packetIndex
The index of the packet |
static short |
RESET_BIT
|
static short |
RESYNCH
|
byte[] |
stick0Axes
Position of the axes of the first js |
short |
stick0Buttons
Button state of the first js |
byte[] |
stick1Axes
Position of the axes of the second js |
short |
stick1Buttons
Button state of the second js |
byte[] |
stick2Axes
Position of the axes of the third js |
short |
stick2Buttons
Button state of the third js |
byte[] |
stick3Axes
Position of the axes of the fourth js |
short |
stick3Buttons
Button state of the fourth js |
int |
teamID
The team number from the ds |
static short |
TEST_MODE_BIT
|
Constructor Summary | |
---|---|
FRCCommonControlData()
Create a new FRCControlData structure |
Method Summary | |
---|---|
boolean |
autonomous()
Determine if the robot should be in autonomous |
boolean |
enabled()
Determine if the robot should be enabled |
protected void |
free()
Method to free the memory used by this structure |
void |
read()
Read new data in the structure |
int |
size()
Get the size of the structure |
boolean |
testMode()
Determine if the robot is in test mode |
void |
write()
Write new data in the structure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short RESET_BIT
public static final short ESTOP_BIT
public static final short ENABLED_BIT
public static final short AUTONOMOUS_BIT
public static final short FMS_ATTATCHED
public static final short RESYNCH
public static final short TEST_MODE_BIT
public static final short CHECK_VERSIONS_BIT
public int packetIndex
public short control
public short dsDigitalIn
public int teamID
public char dsID_Alliance
public char dsID_Position
public byte[] stick0Axes
public short stick0Buttons
public byte[] stick1Axes
public short stick1Buttons
public byte[] stick2Axes
public short stick2Buttons
public byte[] stick3Axes
public short stick3Buttons
public short analog1
public short analog2
public short analog3
public short analog4
Constructor Detail |
---|
public FRCCommonControlData()
Method Detail |
---|
public boolean enabled()
public boolean testMode()
public boolean autonomous()
protected void free()
public void read()
public void write()
public int size()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |