[command] Reorder Scheduler operations (#4261)

Fixes several cases where calling scheduler operations from a command callback could result in NPEs or other issues.

Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
Starlight220
2022-06-16 09:32:16 +03:00
committed by GitHub
parent e61028cb18
commit 9ac9b69aa2
7 changed files with 438 additions and 25 deletions

View File

@@ -367,5 +367,8 @@ class CommandScheduler final : public nt::NTSendable,
frc::Watchdog m_watchdog;
friend class CommandTestBase;
template <typename T>
friend class CommandTestBaseWithParam;
};
} // namespace frc2