90 double fullRange = 1.0,
double offset = 0.0);
108 std::shared_ptr<AnalogInput> m_analog_input;
109 double m_fullRange, m_offset;
Class for reading analog potentiometers.
Definition: AnalogPotentiometer.h:23
AnalogPotentiometer(AnalogPotentiometer &&)=default
double Get() const
Get the current reading of the potentiometer.
AnalogPotentiometer(std::shared_ptr< AnalogInput > input, double fullRange=1.0, double offset=0.0)
Construct an Analog Potentiometer object from an existing Analog Input pointer.
AnalogPotentiometer(int channel, double fullRange=1.0, double offset=0.0)
Construct an Analog Potentiometer object from a channel number.
~AnalogPotentiometer() override=default
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
AnalogPotentiometer & operator=(AnalogPotentiometer &&)=default
AnalogPotentiometer(AnalogInput *input, double fullRange=1.0, double offset=0.0)
Construct an Analog Potentiometer object from an existing Analog Input pointer.
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:19
Interface for Sendable objects.
Definition: Sendable.h:16
Definition: AprilTagPoseEstimator.h:15