Class DriverStationDataJNI
java.lang.Object
org.wpilib.hardware.hal.JNIWrapper
org.wpilib.hardware.hal.simulation.DriverStationDataJNI
JNI for Driver Station data.
-
Nested Class Summary
Nested classes/interfaces inherited from class JNIWrapper
JNIWrapper.Helper -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcancelAllianceStationIdCallback(int uid) static voidcancelDsAttachedCallback(int uid) static voidcancelEnabledCallback(int uid) static voidcancelEStopCallback(int uid) static voidcancelFmsAttachedCallback(int uid) static voidcancelMatchTimeCallback(int uid) static voidcancelOpModeCallback(int uid) static voidcancelOpModeOptionsCallback(int uid) static voidcancelRobotModeCallback(int uid) static intstatic booleanstatic booleanstatic booleangetEStop()static booleanstatic intgetJoystickLeds(int stick) static intgetJoystickRumble(int stick, int rumbleNum) static doublestatic longstatic OpModeOption[]static RobotModestatic voidstatic voidregisterAllCallbacks(NotifyCallback callback, boolean initialNotify) static intregisterAllianceStationIdCallback(NotifyCallback callback, boolean initialNotify) static intregisterDsAttachedCallback(NotifyCallback callback, boolean initialNotify) static intregisterEnabledCallback(NotifyCallback callback, boolean initialNotify) static intregisterEStopCallback(NotifyCallback callback, boolean initialNotify) static intregisterFmsAttachedCallback(NotifyCallback callback, boolean initialNotify) static intregisterMatchTimeCallback(NotifyCallback callback, boolean initialNotify) static intregisterOpModeCallback(NotifyCallback callback, boolean initialNotify) static intregisterOpModeOptionsCallback(BiConsumer<String, OpModeOption[]> callback, boolean initialNotify) static intregisterRobotModeCallback(NotifyCallback callback, boolean initialNotify) static voidstatic voidsetAllianceStationId(int allianceStationId) static voidsetDsAttached(boolean dsAttached) static voidsetEnabled(boolean enabled) static voidsetEStop(boolean eStop) static voidsetEventName(String name) static voidsetFmsAttached(boolean fmsAttached) static voidsetGameData(String gameData) static voidsetJoystickAxes(byte joystickNum, float[] axesArray, short availableAxes) static voidsetJoystickAxesAvailable(int stick, int available) static voidsetJoystickAxis(int stick, int axis, double value) static voidsetJoystickButton(int stick, int button, boolean state) static voidsetJoystickButtons(byte joystickNum, long buttons, long availableButtons) static voidsetJoystickButtonsAvailable(int stick, long available) static voidsetJoystickButtonsValue(int stick, long buttons) static voidsetJoystickGamepadType(int stick, int type) static voidsetJoystickIsGamepad(int stick, boolean isGamepad) static voidsetJoystickName(int stick, String name) static voidsetJoystickPOV(int stick, int pov, byte value) static voidsetJoystickPOVs(byte joystickNum, byte[] povsArray, short availablePovs) static voidsetJoystickPOVsAvailable(int stick, int available) static voidsetJoystickSupportedOutputs(int stick, int supportedOutputs) static voidsetMatchInfo(String eventName, int matchNumber, int replayNumber, int matchType) static voidsetMatchNumber(int matchNumber) static voidsetMatchTime(double matchTime) static voidsetMatchType(int type) static voidsetOpMode(long opMode) static voidsetReplayNumber(int replayNumber) static voidsetRobotMode(RobotMode mode) static voidsetSendConsoleLine(boolean shouldSend) static voidsetSendError(boolean shouldSend) static voidsetTouchpadCounts(int stick, int touchpadCount, int[] fingerCounts) static voidsetTouchpadFinger(int stick, int touchpadIndex, int fingerIndex, boolean down, float x, float y) Methods inherited from class JNIWrapper
forceLoad, suppressUnused
-
Method Details
-
registerEnabledCallback
-
cancelEnabledCallback
-
getEnabled
-
setEnabled
-
registerRobotModeCallback
-
cancelRobotModeCallback
-
getRobotMode
-
setRobotMode
-
registerEStopCallback
-
cancelEStopCallback
-
getEStop
-
setEStop
-
registerFmsAttachedCallback
-
cancelFmsAttachedCallback
-
getFmsAttached
-
setFmsAttached
-
registerDsAttachedCallback
-
cancelDsAttachedCallback
-
getDsAttached
-
setDsAttached
-
registerAllianceStationIdCallback
-
cancelAllianceStationIdCallback
-
getAllianceStationId
-
setAllianceStationId
-
registerMatchTimeCallback
-
cancelMatchTimeCallback
-
getMatchTime
-
setMatchTime
-
registerOpModeCallback
-
cancelOpModeCallback
-
getOpMode
-
setOpMode
-
registerOpModeOptionsCallback
public static int registerOpModeOptionsCallback(BiConsumer<String, OpModeOption[]> callback, boolean initialNotify) -
cancelOpModeOptionsCallback
-
getOpModeOptions
-
setJoystickAxes
-
setJoystickPOVs
-
setJoystickButtons
-
getJoystickLeds
-
getJoystickRumble
-
setMatchInfo
-
setGameData
-
registerAllCallbacks
-
notifyNewData
-
setSendError
-
setSendConsoleLine
-
setJoystickButton
-
setJoystickAxis
-
setJoystickPOV
-
setJoystickButtonsValue
-
setJoystickAxesAvailable
-
setJoystickPOVsAvailable
-
setJoystickButtonsAvailable
-
setTouchpadCounts
-
setTouchpadFinger
public static void setTouchpadFinger(int stick, int touchpadIndex, int fingerIndex, boolean down, float x, float y) -
setJoystickIsGamepad
-
setJoystickGamepadType
-
setJoystickName
-
setJoystickSupportedOutputs
-
setEventName
-
setMatchType
-
setMatchNumber
-
setReplayNumber
-
resetData
-