Class DriverStationDataJNI

java.lang.Object
org.wpilib.hardware.hal.JNIWrapper
org.wpilib.hardware.hal.simulation.DriverStationDataJNI

public class DriverStationDataJNI extends JNIWrapper
JNI for Driver Station data.
  • Method Details

    • 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)
    • registerRobotModeCallback

      public static int registerRobotModeCallback(NotifyCallback callback, boolean initialNotify)
    • cancelRobotModeCallback

      public static void cancelRobotModeCallback(int uid)
    • getRobotMode

      public static RobotMode getRobotMode()
    • setRobotMode

      public static void setRobotMode(RobotMode mode)
    • 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)
    • registerOpModeCallback

      public static int registerOpModeCallback(NotifyCallback callback, boolean initialNotify)
    • cancelOpModeCallback

      public static void cancelOpModeCallback(int uid)
    • getOpMode

      public static long getOpMode()
    • setOpMode

      public static void setOpMode(long opMode)
    • registerOpModeOptionsCallback

      public static int registerOpModeOptionsCallback(BiConsumer<String, OpModeOption[]> callback, boolean initialNotify)
    • cancelOpModeOptionsCallback

      public static void cancelOpModeOptionsCallback(int uid)
    • getOpModeOptions

      public static OpModeOption[] getOpModeOptions()
    • setJoystickAxes

      public static void setJoystickAxes(byte joystickNum, float[] axesArray, short availableAxes)
    • setJoystickPOVs

      public static void setJoystickPOVs(byte joystickNum, byte[] povsArray, short availablePovs)
    • setJoystickButtons

      public static void setJoystickButtons(byte joystickNum, long buttons, long availableButtons)
    • getJoystickLeds

      public static int getJoystickLeds(int stick)
    • getJoystickRumble

      public static int getJoystickRumble(int stick, int rumbleNum)
    • setMatchInfo

      public static void setMatchInfo(String eventName, int matchNumber, int replayNumber, int matchType)
    • setGameData

      public static void setGameData(String gameData)
    • 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, byte value)
    • setJoystickButtonsValue

      public static void setJoystickButtonsValue(int stick, long buttons)
    • setJoystickAxesAvailable

      public static void setJoystickAxesAvailable(int stick, int available)
    • setJoystickPOVsAvailable

      public static void setJoystickPOVsAvailable(int stick, int available)
    • setJoystickButtonsAvailable

      public static void setJoystickButtonsAvailable(int stick, long available)
    • setTouchpadCounts

      public static void setTouchpadCounts(int stick, int touchpadCount, int[] fingerCounts)
    • setTouchpadFinger

      public static void setTouchpadFinger(int stick, int touchpadIndex, int fingerIndex, boolean down, float x, float y)
    • setJoystickIsGamepad

      public static void setJoystickIsGamepad(int stick, boolean isGamepad)
    • setJoystickGamepadType

      public static void setJoystickGamepadType(int stick, int type)
    • setJoystickName

      public static void setJoystickName(int stick, String name)
    • setJoystickSupportedOutputs

      public static void setJoystickSupportedOutputs(int stick, int supportedOutputs)
    • 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()