12#include <wpi/units/time.hpp>
76 explicit operator bool()
const {
return IsValid(); }
157 PhoenixMultiAlert(std::string
const &group, std::string
const &
id, uint32_t levelFlags, std::string
const &
text =
"") :
169 explicit operator bool()
const {
return IsValid(); }
Cross the Road Electronics End User License Agreement This Software License or “Customer” and Cross The Road Electronics a Michigan based company with its principal place of business located at MI Terms Agreement this End User License Agreement that forms the entire agreement between You and the Company regarding the use of the Software CAN BUS a communication standard designed to allow hardware devices to communicate with each other Leone USA Content refers to content such as text
Definition CTRE_LICENSE.txt:15
Level
Levels of urgency of the alert.
Definition Alerts.hpp:32
@ Low
Low priority / Info.
Definition Alerts.hpp:38
@ High
High priority / Error.
Definition Alerts.hpp:34
@ Medium
Medium priority / Warning.
Definition Alerts.hpp:36
PhoenixAlert(char const *group, char const *id, Level level, char const *text="")
Creates a new alert.
PhoenixAlert()=default
Creates an invalid alert.
bool IsValid() const
Definition Alerts.hpp:71
void SetInactive()
Sets the alert state to inactive.
PhoenixAlert & WithDebounce(wpi::units::second_t debounce)
Sets the time debounce of this alert, default 1 second.
void SetActive(std::optional< std::string > const &text)
Sets the alert state to active and optionally changes the text.
Definition Alerts.hpp:102
void SetActive(char const *text=nullptr)
Sets the alert state to active and optionally changes the text.
PhoenixAlert(std::string const &group, std::string const &id, Level level, std::string const &text="")
Creates a new alert.
Definition Alerts.hpp:64
PhoenixAlert::Level Level
Definition Alerts.hpp:125
static constexpr uint32_t LevelFlag_Low
Include Low priority / Info.
Definition Alerts.hpp:132
void SetActive(Level level, std::optional< std::string > const &text)
Sets the alert state to active at the given level and optionally changes the text.
Definition Alerts.hpp:197
static constexpr uint32_t LevelFlag_High
Include High priority / Error.
Definition Alerts.hpp:128
static constexpr uint32_t LevelFlag_Medium
Include Medium priority / Warning.
Definition Alerts.hpp:130
PhoenixMultiAlert & WithDebounce(wpi::units::second_t debounce)
Sets the time debounce of this alert, default 1 second.
PhoenixMultiAlert(std::string const &group, std::string const &id, uint32_t levelFlags, std::string const &text="")
Creates a new multi-level alert.
Definition Alerts.hpp:157
bool IsValid() const
Definition Alerts.hpp:164
PhoenixMultiAlert()=default
Creates an invalid multi-level alert.
void SetActive(Level level, char const *text=nullptr)
Sets the alert state to active at the given level and optionally changes the text.
PhoenixMultiAlert(char const *group, char const *id, uint32_t levelFlags, char const *text="")
Creates a new multi-level alert.
void SetInactive()
Sets the alert state to inactive.
Definition ExternalFeedbackConfigs.hpp:16
Definition motor_constants.h:14