Class AlertDataJNI


public class AlertDataJNI extends WPIUtilJNIWrapper
JNI for alert data.
  • Field Details

    • LEVEL_HIGH

      public static final int LEVEL_HIGH
      High priority alert - displayed first with a red "X" symbol. Use this type for problems which will seriously affect the robot's functionality and thus require immediate attention.
      See Also:
    • LEVEL_MEDIUM

      public static final int LEVEL_MEDIUM
      Medium priority alert - displayed second with a yellow "!" symbol. Use this type for problems which could affect the robot's functionality but do not necessarily require immediate attention.
      See Also:
    • LEVEL_LOW

      public static final int LEVEL_LOW
      Low priority alert - displayed last with a green "i" symbol. Use this type for problems which are unlikely to affect the robot's functionality, or any other alerts which do not fall under the other categories.
      See Also:
  • 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.