|
2010 FRC Java API |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.cldc.jna.Structure
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
|
byte |
control
The control mode e.g. |
static short |
CRIO_CHECK_SUM
|
long |
cRIOChecksum
Checksum for communications |
byte |
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
|
static short |
FPGA_CHECK_SUM
|
int |
FPGAChecksum0
Checksum for FPGA |
int |
FPGAChecksum1
Checksum for FPGA |
int |
FPGAChecksum2
Checksum for FPGA |
int |
FPGAChecksum3
Checksum for FPGA |
short |
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 |
short |
teamID
The team number from the ds |
char[] |
versionData
Version data |
Fields inherited from class com.sun.cldc.jna.Structure |
---|
backingNativeMemory, NULL |
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 strucure |
void |
read()
Read new data in the structure |
int |
size()
Get the size of the structure |
void |
write()
Write new data in the structure |
Methods inherited from class com.sun.cldc.jna.Structure |
---|
allocateMemory, allocateMemory, clear, freeMemory, getPointer, release, toString, useMemory |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, 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 CRIO_CHECK_SUM
public static final short FPGA_CHECK_SUM
public short packetIndex
public byte control
public byte dsDigitalIn
public short 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
public long cRIOChecksum
public int FPGAChecksum0
public int FPGAChecksum1
public int FPGAChecksum2
public int FPGAChecksum3
public final char[] versionData
Constructor Detail |
---|
public FRCCommonControlData()
Method Detail |
---|
public boolean enabled()
public boolean autonomous()
protected void free()
public void read()
read
in class Structure
public void write()
write
in class Structure
public int size()
size
in class Structure
|
2010 FRC Java API |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |