43 [[nodiscard]] std::unique_ptr<CallbackStore>
68 [[nodiscard]] std::unique_ptr<CallbackStore>
Class for Spike style relay outputs.
Definition: Relay.h:32
Class to control a simulated relay.
Definition: RelaySim.h:20
void SetInitializedForward(bool initializedForward)
Define whether the forward direction has been initialized.
RelaySim(const Relay &relay)
Constructs from a Relay object.
std::unique_ptr< CallbackStore > RegisterForwardCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when the forward direction changes state.
std::unique_ptr< CallbackStore > RegisterInitializedReverseCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when the reverse direction is initialized.
void SetReverse(bool reverse)
Set whether the reverse direction is active.
std::unique_ptr< CallbackStore > RegisterInitializedForwardCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when the forward direction is initialized.
void ResetData()
Reset all simulation data.
std::unique_ptr< CallbackStore > RegisterReverseCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when the reverse direction changes state.
RelaySim(int channel)
Constructs from a relay channel number.
void SetForward(bool forward)
Set whether the forward direction is active.
bool GetReverse() const
Check whether the reverse direction is active.
bool GetInitializedForward() const
Check whether the forward direction has been initialized.
bool GetForward() const
Check whether the forward direction is active.
void SetInitializedReverse(bool initializedReverse)
Define whether the reverse direction has been initialized.
bool GetInitializedReverse() const
Check whether the reverse direction has been initialized.
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition: CallbackStore.h:14
Definition: AprilTagFieldLayout.h:22