10#include "units/time.h"
29 explicit Debouncer(
const units::millisecond_t symmetricDebounceTime);
44 void Reset(
bool newVal);
50 std::chrono::time_point<std::chrono::steady_clock>
Definition debouncer.h:14
argos_lib::DebounceSettings m_debounceSettings
Configuration for asymmetric debouncer.
Definition debouncer.h:47
void Reset(bool newVal)
Resets debouncer to a known status like at construction.
Definition debouncer.cpp:44
bool m_rawStatus
Last raw value.
Definition debouncer.h:48
bool m_debouncedStatus
Current value after applying debounce.
Definition debouncer.h:49
bool operator()(bool newVal)
Update debouncer with new input and retreive latest debounced status.
Definition debouncer.cpp:18
std::chrono::time_point< std::chrono::steady_clock > m_debounceTransitionTime
Time when latest transition detected.
Definition debouncer.h:51
Definition swap_controllers_command.h:12
Definition debounce_settings.h:11