Package edu.wpi.first.hal.sim.mockdata
Class DriverStationDataJNI
- java.lang.Object
-
- edu.wpi.first.hal.JNIWrapper
-
- edu.wpi.first.hal.sim.mockdata.DriverStationDataJNI
-
public class DriverStationDataJNI extends JNIWrapper
-
-
Constructor Summary
Constructors Constructor Description DriverStationDataJNI()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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
cancelTestCallback(int uid)
static boolean
getAutonomous()
static boolean
getDsAttached()
static boolean
getEnabled()
static boolean
getEStop()
static boolean
getFmsAttached()
static boolean
getTest()
static void
notifyNewData()
static void
registerAllCallbacks(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
registerTestCallback(NotifyCallback callback, boolean initialNotify)
static void
resetData()
static void
setAutonomous(boolean autonomous)
static void
setDsAttached(boolean dsAttached)
static void
setEnabled(boolean enabled)
static void
setEStop(boolean eStop)
static void
setFmsAttached(boolean fmsAttached)
static void
setJoystickAxes(byte joystickNum, float[] axesArray)
static void
setJoystickButtons(byte joystickNum, int buttons, int count)
static void
setJoystickPOVs(byte joystickNum, short[] povsArray)
static void
setMatchInfo(String eventName, String gameSpecificMessage, int matchNumber, int replayNumber, int matchType)
static void
setTest(boolean test)
-
-
-
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)
-
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)
-
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()
-
resetData
public static void resetData()
-
-