| 
 | |||||||||
| 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 | analog1Driver Station analog input | 
|  short | analog2Driver Station analog input | 
|  short | analog3Driver Station analog input | 
|  short | analog4Driver Station analog input | 
| static short | AUTONOMOUS_BIT | 
| static short | CHECK_VERSIONS_BIT | 
|  short | controlThe control mode e.g. | 
|  short | dsDigitalInThe state of the digital inputs on the ds | 
|  char | dsID_AllianceWhich alliance the robot is on | 
|  char | dsID_PositionThe position of the controls on the alliance station wall. | 
| static short | ENABLED_BIT | 
| static short | ESTOP_BIT | 
| static short | FMS_ATTATCHED | 
|  int | packetIndexThe index of the packet | 
| static short | RESET_BIT | 
| static short | RESYNCH | 
|  byte[] | stick0AxesPosition of the axes of the first js | 
|  short | stick0ButtonsButton state of the first js | 
|  byte[] | stick1AxesPosition of the axes of the second js | 
|  short | stick1ButtonsButton state of the second js | 
|  byte[] | stick2AxesPosition of the axes of the third js | 
|  short | stick2ButtonsButton state of the third js | 
|  byte[] | stick3AxesPosition of the axes of the fourth js | 
|  short | stick3ButtonsButton state of the fourth js | 
|  int | teamIDThe 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 | ||||||||