AlertSim

class wpilib.simulation.AlertSim

Bases: pybind11_object

Class to get info on simulated alerts.

class AlertInfo

Bases: pybind11_object

Information about an alert.

isActive() bool

Returns whether the alert is currently active.

Returns:

true if the alert is active, false otherwise

property level

The level of the alert (HIGH, MEDIUM, or LOW).

static getActive() list[wpilib.simulation._simulation.AlertSim.AlertInfo]

Gets detailed information about all active alerts.

Returns:

Alerts

static getAll() list[wpilib.simulation._simulation.AlertSim.AlertInfo]

Gets detailed information about each alert (including inactive ones).

Returns:

Alerts

static getCount() int

Gets the number of alerts. Note: this is not guaranteed to be consistent with the number of alerts returned by GetAll.

Returns:

the number of alerts

static resetData() None

Resets all alert simulation data.