4 #include <frc/SpeedController.h>
13 explicit Servo(
int channel);
17 void Set(
double value);
20 void SetAngle(
double angle);
21 double GetAngle()
const;
22 double GetMaxAngle()
const;
23 double GetMinAngle()
const;
25 void InitSendable(frc::SendableBuilder& builder)
override;
28 double GetServoAngleRange()
const;
30 static constexpr
double kMaxServoAngle = 300.0;
31 static constexpr
double kMinServoAngle = 0.0;
33 static constexpr
double kDefaultMaxServoPWM = 2.5;
34 static constexpr
double kDefaultMinServoPWM = 0.5;