[commands] Add static Trigger factories for robot mode changes (#5902)

This commit is contained in:
DeltaDizzy
2023-11-14 17:54:43 -06:00
committed by GitHub
parent 79dd795bc0
commit 09f3ed6a5f
7 changed files with 249 additions and 0 deletions

View File

@@ -268,6 +268,12 @@ class Trigger {
frc::Debouncer::DebounceType type =
frc::Debouncer::DebounceType::kRising);
/**
* Returns the current state of this trigger.
* @return A bool representing the current state of the trigger.
*/
bool Get() const;
private:
frc::EventLoop* m_loop;
std::function<bool()> m_condition;