|
|||||||||
| 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
|
short |
control
The control mode e.g. |
static short |
CRIO_CHECK_SUM
|
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
|
static short |
FPGA_CHECK_SUM
|
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 |
| Fields inherited from class com.sun.cldc.jna.Structure |
|---|
backingNativeMemory |
| Constructor Summary | |
|---|---|
FRCCommonControlData()
|
|
| 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 |
FrcBotSimProperties |
getSimProperties()
|
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, freeMemory, getPointer, release, useMemory |
| 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 CRIO_CHECK_SUM
public static final short FPGA_CHECK_SUM
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 FrcBotSimProperties getSimProperties()
getSimProperties in interface FrcBotSimComponentpublic boolean enabled()
public boolean autonomous()
protected void free()
public void read()
read in class Structurepublic void write()
write in class Structurepublic int size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||