mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
[commands] CommandScheduler: Provide function to print watchdog epochs (#6582)
This commit is contained in:
@@ -428,6 +428,10 @@ void CommandScheduler::Enable() {
|
||||
m_impl->disabled = false;
|
||||
}
|
||||
|
||||
void CommandScheduler::PrintWatchdogEpochs() {
|
||||
m_watchdog.PrintEpochs();
|
||||
}
|
||||
|
||||
void CommandScheduler::OnCommandInitialize(Action action) {
|
||||
m_impl->initActions.emplace_back(std::move(action));
|
||||
}
|
||||
|
||||
@@ -333,6 +333,11 @@ class CommandScheduler final : public wpi::Sendable,
|
||||
*/
|
||||
void Enable();
|
||||
|
||||
/**
|
||||
* Prints list of epochs added so far and their times.
|
||||
*/
|
||||
void PrintWatchdogEpochs();
|
||||
|
||||
/**
|
||||
* Adds an action to perform on the initialization of any command by the
|
||||
* scheduler.
|
||||
|
||||
Reference in New Issue
Block a user