21 using size_type = std::vector<units::second_t>::size_type;
29 count.push_back(0_ms);
38 if (latch)
return false;
39 units::second_t now = frc::Timer::GetFPGATimestamp();
42 units::second_t past = count[idx];
43 if ((now - past) < threshold) {
49 units::second_t threshold;
50 std::vector<units::second_t> count;
Definition: CooldownWarning.h:15
bool feed()
Definition: CooldownWarning.h:37
CooldownWarning(units::second_t threshold, size_type cnt)
Definition: CooldownWarning.h:27
std::vector< units::second_t >::size_type size_type
Definition: CooldownWarning.h:21
Definition: CanandMessage.h:10