Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose watchdog.printEpochs in CommandScheduler #6582

Merged
merged 6 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,13 @@ public void enable() {
m_disabled = false;
}

/**
* Prints list of epochs added so far and their times.
*/
public void printWatchdogEpochs() {
m_watchdog.printEpochs();
}

/**
* Adds an action to perform on the initialization of any command by the scheduler.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ class CommandScheduler final : public wpi::Sendable,
*/
void Enable();

/**
* Prints list of epochs added so far and their times.
*/
void PrintWatchdogEpochs();
kytpbs marked this conversation as resolved.
Show resolved Hide resolved

/**
* Adds an action to perform on the initialization of any command by the
* scheduler.
Expand Down