Information about a multi-level alert.
More...
#include <ctre/phoenix6/Alertable.hpp>
|
| bool | isActive {} |
| | Whether the multi-level alert is active.
|
| PhoenixMultiAlert::Level | level {} |
| | The new alert urgency level.
|
| std::optional< std::string > | text {} |
| | The new text to report in the alert, or nullopt to leave the text unchanged.
|
Information about a multi-level alert.
◆ Active()
template<std::convertible_to< std::optional< std::string > > S = std::optional<std::string>>
Creates new information for an active multi-level alert.
- Template Parameters
-
| S | Type of the text, convertible to std::optional<std::string> |
- Parameters
-
| level | New alert urgency level |
| text | New text to report in the alert, or nullopt to leave the text unchanged |
- Returns
- Information for an active multi-level alert
◆ Inactive()
Creates new information for an inactive multi-level alert.
- Returns
- Information for an inactive multi-level alert
◆ isActive
| bool ctre::phoenix6::MultiAlertInfo::isActive {} |
Whether the multi-level alert is active.
◆ level
The new alert urgency level.
◆ text
| std::optional<std::string> ctre::phoenix6::MultiAlertInfo::text {} |
The new text to report in the alert, or nullopt to leave the text unchanged.
The documentation for this struct was generated from the following file: