11 #include "frc/SpeedController.h"
27 explicit Servo(
int channel);
40 void Set(
double value);
102 double GetServoAngleRange()
const;
104 static constexpr
double kMaxServoAngle = 180.0;
105 static constexpr
double kMinServoAngle = 0.0;
107 static constexpr
double kDefaultMaxServoPWM = 2.4;
108 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.
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.
Class implements the PWM generation in the FPGA.
Definition: PWM.h:37
void SetOffline()
Set the servo to offline.