Package edu.wpi.first.hal.simulation
Class DriverStationDataJNI
java.lang.Object
edu.wpi.first.hal.JNIWrapper
edu.wpi.first.hal.simulation.DriverStationDataJNI
public class DriverStationDataJNI extends JNIWrapper
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description DriverStationDataJNI()
-
Method Summary
Modifier and Type Method Description static void
cancelAllianceStationIdCallback(int uid)
static void
cancelAutonomousCallback(int uid)
static void
cancelDsAttachedCallback(int uid)
static void
cancelEnabledCallback(int uid)
static void
cancelEStopCallback(int uid)
static void
cancelFmsAttachedCallback(int uid)
static void
cancelMatchTimeCallback(int uid)
static void
cancelTestCallback(int uid)
static int
getAllianceStationId()
static boolean
getAutonomous()
static boolean
getDsAttached()
static boolean
getEnabled()
static boolean
getEStop()
static boolean
getFmsAttached()
static long
getJoystickOutputs(int stick)
static int
getJoystickRumble(int stick, int rumbleNum)
static double
getMatchTime()
static boolean
getTest()
static void
notifyNewData()
static void
registerAllCallbacks(NotifyCallback callback, boolean initialNotify)
static int
registerAllianceStationIdCallback(NotifyCallback callback, boolean initialNotify)
static int
registerAutonomousCallback(NotifyCallback callback, boolean initialNotify)
static int
registerDsAttachedCallback(NotifyCallback callback, boolean initialNotify)
static int
registerEnabledCallback(NotifyCallback callback, boolean initialNotify)
static int
registerEStopCallback(NotifyCallback callback, boolean initialNotify)
static int
registerFmsAttachedCallback(NotifyCallback callback, boolean initialNotify)
static int
registerMatchTimeCallback(NotifyCallback callback, boolean initialNotify)
static int
registerTestCallback(NotifyCallback callback, boolean initialNotify)
static void
resetData()
static void
setAllianceStationId(int allianceStationId)
static void
setAutonomous(boolean autonomous)
static void
setDsAttached(boolean dsAttached)
static void
setEnabled(boolean enabled)
static void
setEStop(boolean eStop)
static void
setEventName(String name)
static void
setFmsAttached(boolean fmsAttached)
static void
setGameSpecificMessage(String message)
static void
setJoystickAxes(byte joystickNum, float[] axesArray)
static void
setJoystickAxis(int stick, int axis, double value)
static void
setJoystickAxisCount(int stick, int count)
static void
setJoystickAxisType(int stick, int axis, int type)
static void
setJoystickButton(int stick, int button, boolean state)
static void
setJoystickButtonCount(int stick, int count)
static void
setJoystickButtons(byte joystickNum, int buttons, int count)
static void
setJoystickButtonsValue(int stick, int buttons)
static void
setJoystickIsXbox(int stick, boolean isXbox)
static void
setJoystickName(int stick, String name)
static void
setJoystickPOV(int stick, int pov, int value)
static void
setJoystickPOVCount(int stick, int count)
static void
setJoystickPOVs(byte joystickNum, short[] povsArray)
static void
setJoystickType(int stick, int type)
static void
setMatchInfo(String eventName, String gameSpecificMessage, int matchNumber, int replayNumber, int matchType)
static void
setMatchNumber(int matchNumber)
static void
setMatchTime(double matchTime)
static void
setMatchType(int type)
static void
setReplayNumber(int replayNumber)
static void
setSendConsoleLine(boolean shouldSend)
static void
setSendError(boolean shouldSend)
static void
setTest(boolean test)
-
Constructor Details
-
DriverStationDataJNI
public DriverStationDataJNI()
-
-
Method Details
-
registerEnabledCallback
-
cancelEnabledCallback
-
getEnabled
-
setEnabled
-
registerAutonomousCallback
-
cancelAutonomousCallback
-
getAutonomous
-
setAutonomous
-
registerTestCallback
-
cancelTestCallback
-
getTest
-
setTest
-
registerEStopCallback
-
cancelEStopCallback
-
getEStop
-
setEStop
-
registerFmsAttachedCallback
-
cancelFmsAttachedCallback
-
getFmsAttached
-
setFmsAttached
-
registerDsAttachedCallback
-
cancelDsAttachedCallback
-
getDsAttached
-
setDsAttached
-
registerAllianceStationIdCallback
public static int registerAllianceStationIdCallback(NotifyCallback callback, boolean initialNotify) -
cancelAllianceStationIdCallback
-
getAllianceStationId
-
setAllianceStationId
-
registerMatchTimeCallback
-
cancelMatchTimeCallback
-
getMatchTime
-
setMatchTime
-
setJoystickAxes
-
setJoystickPOVs
-
setJoystickButtons
-
getJoystickOutputs
-
getJoystickRumble
-
setMatchInfo
public static void setMatchInfo(String eventName, String gameSpecificMessage, int matchNumber, int replayNumber, int matchType) -
registerAllCallbacks
-
notifyNewData
-
setSendError
-
setSendConsoleLine
-
setJoystickButton
-
setJoystickAxis
-
setJoystickPOV
-
setJoystickButtonsValue
-
setJoystickAxisCount
-
setJoystickPOVCount
-
setJoystickButtonCount
-
setJoystickIsXbox
-
setJoystickType
-
setJoystickName
-
setJoystickAxisType
-
setGameSpecificMessage
-
setEventName
-
setMatchType
-
setMatchNumber
-
setReplayNumber
-
resetData
-