MXP analog output class.
Definition AnalogOutput.h:18
AnalogOutput(AnalogOutput &&)=default
AnalogOutput & operator=(AnalogOutput &&)=default
~AnalogOutput() override=default
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
int GetChannel() const
Get the channel of this AnalogOutput.
void SetVoltage(double voltage)
Set the value of the analog output.
hal::Handle< HAL_AnalogOutputHandle, HAL_FreeAnalogOutputPort > m_port
Definition AnalogOutput.h:57
AnalogOutput(int channel)
Construct an analog output on the given channel.
int m_channel
Definition AnalogOutput.h:56
double GetVoltage() const
Get the voltage of the analog output.
A move-only C++ wrapper around a HAL handle.
Definition Types.h:96
Helper class for building Sendable dashboard representations.
Definition SendableBuilder.h:21
A helper class for use with objects that add themselves to SendableRegistry.
Definition SendableHelper.h:21
Interface for Sendable objects.
Definition Sendable.h:16