43 void Set(
double value);
106 double GetServoAngleRange()
const;
108 static constexpr double kMaxServoAngle = 180.;
109 static constexpr double kMinServoAngle = 0.0;
111 static constexpr units::millisecond_t kDefaultMaxServoPWM = 2.4_ms;
112 static constexpr units::millisecond_t kDefaultMinServoPWM = 0.6_ms;
Class implements the PWM generation in the FPGA.
Definition: PWM.h:26
Standard hobby style servo.
Definition: Servo.h:19
Servo(int channel)
Constructor.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
double Get() const
Get the servo position.
double GetMaxAngle() const
Get the maximum angle of the servo.
Servo & operator=(Servo &&)=default
void SetOffline()
Set the servo to offline.
double GetMinAngle() const
Get the minimum angle of the servo.
double GetAngle() const
Get the servo angle.
void Set(double value)
Set the servo position.
void SetAngle(double angle)
Set the servo angle.
Helper class for building Sendable dashboard representations.
Definition: SendableBuilder.h:21
Definition: AprilTagPoseEstimator.h:15