50 void Set(
double value);
94 static double GetServoAngleRange();
95 units::microsecond_t GetFullRangeScaleFactor()
const;
97 static constexpr double kMaxServoAngle = 180.0;
98 static constexpr double kMinServoAngle = 0.0;
100 static constexpr units::millisecond_t kDefaultMaxServoPWM = 2.4_ms;
101 static constexpr units::millisecond_t kDefaultMinServoPWM = 0.6_ms;
103 units::millisecond_t m_maxPwm = kDefaultMaxServoPWM;
104 units::millisecond_t m_minPwm = kDefaultMinServoPWM;
Class implements the PWM generation in the FPGA.
Definition PWM.h:26
Standard hobby style servo.
Definition Servo.h:24
Servo(int channel)
Constructor.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
double Get() const
Get the servo position.
Servo & operator=(Servo &&)=default
double GetAngle() const
Get the servo angle.
void Set(double value)
Set the servo position.
void SetAngle(double angle)
Set the servo angle.
A move-only C++ wrapper around a HAL simulator device handle.
Definition SimDevice.h:645
C++ wrapper around a HAL simulator double value handle.
Definition SimDevice.h:536
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
Definition SystemServer.h:9