10 #include "frc/SafePWM.h"
11 #include "frc/SpeedController.h"
27 explicit Servo(
int channel);
37 void Set(
double value);
99 double GetServoAngleRange()
const;
101 static constexpr
double kMaxServoAngle = 180.0;
102 static constexpr
double kMinServoAngle = 0.0;
104 static constexpr
double kDefaultMaxServoPWM = 2.4;
105 static constexpr
double kDefaultMinServoPWM = .6;
Standard hobby style servo.
Definition: Servo.h:21
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
double GetMaxAngle() const
Get the maximum angle of the servo.
void Set(double value)
Set the servo position.
double GetMinAngle() const
Get the minimum angle of the servo.
A safe version of the PWM class.
Definition: SafePWM.h:28
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
Definition: SendableBuilder.h:23
void SetAngle(double angle)
Set the servo angle.
double GetAngle() const
Get the servo angle.
double Get() const
Get the servo position.
void SetOffline()
Set the servo to offline.