[wpilib] Add EventLoop (#4104)

This is a generic expansion of the command-based Trigger framework.
This commit is contained in:
Starlight220
2022-06-09 08:16:51 +03:00
committed by GitHub
parent 16a4888c52
commit 45b7fc445b
27 changed files with 1265 additions and 428 deletions

View File

@@ -10,7 +10,7 @@ CommandTestBase::CommandTestBase() {
auto& scheduler = CommandScheduler::GetInstance();
scheduler.CancelAll();
scheduler.Enable();
scheduler.ClearButtons();
scheduler.GetActiveButtonLoop()->Clear();
}
CommandScheduler CommandTestBase::GetScheduler() {
@@ -22,7 +22,7 @@ void CommandTestBase::SetUp() {
}
void CommandTestBase::TearDown() {
CommandScheduler::GetInstance().ClearButtons();
CommandScheduler::GetInstance().GetActiveButtonLoop()->Clear();
}
void CommandTestBase::SetDSEnabled(bool enabled) {