mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
[wpilibc] Refactor Tracer functionality out of Watchdog class (#2456)
This commit is contained in:
committed by
GitHub
parent
c14b87b228
commit
b9ee3ae030
@@ -14,10 +14,11 @@
|
||||
#include <hal/cpp/fpga_clock.h>
|
||||
#include <units/units.h>
|
||||
#include <wpi/SafeThread.h>
|
||||
#include <wpi/StringMap.h>
|
||||
#include <wpi/StringRef.h>
|
||||
#include <wpi/deprecated.h>
|
||||
|
||||
#include "frc/Tracer.h"
|
||||
|
||||
namespace frc {
|
||||
|
||||
/**
|
||||
@@ -155,9 +156,8 @@ class Watchdog {
|
||||
hal::fpga_clock::time_point m_expirationTime;
|
||||
std::function<void()> m_callback;
|
||||
hal::fpga_clock::time_point m_lastTimeoutPrintTime = hal::fpga_clock::epoch();
|
||||
hal::fpga_clock::time_point m_lastEpochsPrintTime = hal::fpga_clock::epoch();
|
||||
|
||||
wpi::StringMap<std::chrono::nanoseconds> m_epochs;
|
||||
Tracer m_tracer;
|
||||
bool m_isExpired = false;
|
||||
|
||||
bool m_suppressTimeoutMessage = false;
|
||||
|
||||
Reference in New Issue
Block a user