12 #include "frc/AnalogInput.h"
13 #include "frc/ErrorBase.h"
14 #include "frc/interfaces/Potentiometer.h"
15 #include "frc/smartdashboard/Sendable.h"
16 #include "frc/smartdashboard/SendableHelper.h"
20 class SendableBuilder;
97 double fullRange = 1.0,
double offset = 0.0);
110 double Get()
const override;
122 std::shared_ptr<AnalogInput> m_analog_input;
123 double m_fullRange, m_offset;
double PIDGet() override
Implement the PIDSource interface.
AnalogPotentiometer(int channel, double fullRange=1.0, double offset=0.0)
Construct an Analog Potentiometer object from a channel number.
Class for reading analog potentiometers.
Definition: AnalogPotentiometer.h:28
Interface for potentiometers.
Definition: Potentiometer.h:17
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
Base class for most objects.
Definition: ErrorBase.h:104
Interface for Sendable objects.
Definition: Sendable.h:17
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
double Get() const override
Get the current reading of the potentiomer.
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:28
Definition: SendableBuilder.h:23