MXP analog output class.
Definition: AnalogOutput.h:17
Class to control a simulated analog output.
Definition: AnalogOutputSim.h:20
void SetVoltage(double voltage)
Set the analog output voltage.
std::unique_ptr< CallbackStore > RegisterInitializedCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run when this analog output is initialized.
void ResetData()
Reset all simulation data on this object.
double GetVoltage() const
Read the analog output voltage.
void SetInitialized(bool initialized)
Define whether this analog output has been initialized.
std::unique_ptr< CallbackStore > RegisterVoltageCallback(NotifyCallback callback, bool initialNotify)
Register a callback to be run whenever the voltage changes.
AnalogOutputSim(int channel)
Constructs from an analog output channel number.
bool GetInitialized() const
Check whether this analog output has been initialized.
AnalogOutputSim(const AnalogOutput &analogOutput)
Constructs from an AnalogOutput object.
std::function< void(std::string_view, const HAL_Value *)> NotifyCallback
Definition: CallbackStore.h:14
Definition: AprilTagPoseEstimator.h:15