Class AlertDataJNI

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

public class AlertDataJNI extends JNIWrapper
JNI for alert data.
  • Method Details

    • getNumAlerts

      public static int getNumAlerts()
      Gets the number of alerts. Note: this is not guaranteed to be consistent with the number of alerts returned by getAlerts, so the latter's return value should be used to determine how many alerts were actually filled in.
      Returns:
      the number of alerts
    • getAlerts

      public static AlertDataJNI.AlertInfo[] getAlerts()
      Gets detailed information about each alert.
      Returns:
      Array of information about each alert
    • resetData

      public static void resetData()
      Resets all alert simulation data.