11 #include "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
double GetMaxAngle() const
Get the maximum angle of the servo.
Definition: Servo.cpp:53
Definition: Utility.cpp:119
double GetAngle() const
Get the servo angle.
Definition: Servo.cpp:49
double Get() const
Get the servo position.
Definition: Servo.cpp:37
void SetAngle(double angle)
Set the servo angle.
Definition: Servo.cpp:39
void Set(double value)
Set the servo position.
Definition: Servo.cpp:33
double GetMinAngle() const
Get the minimum angle of the servo.
Definition: Servo.cpp:55
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
Definition: Servo.cpp:57
A safe version of the PWM class.
Definition: SafePWM.h:28
Definition: SendableBuilder.h:23
void SetOffline()
Set the servo to offline.
Definition: Servo.cpp:35
Servo(int channel)
Definition: Servo.cpp:22