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