11 #include "SpeedController.h"
22 explicit Servo(uint32_t channel);
23 Servo(uint8_t moduleNumber, uint32_t channel);
25 void Set(
float value);
30 static float GetMaxAngle() {
return kMaxServoAngle; };
31 static float GetMinAngle() {
return kMinServoAngle; };
33 void ValueChanged(ITable* source,
const std::string& key, EntryValue value,
bool isNew);
35 void StartLiveWindowMode();
36 void StopLiveWindowMode();
37 std::string GetSmartDashboardType();
38 void InitTable(ITable *subTable);
45 float GetServoAngleRange() {
return kMaxServoAngle - kMinServoAngle;}
47 static constexpr
float kMaxServoAngle = 170.0;
48 static constexpr
float kMinServoAngle = 0.0;
void SetOffline()
Definition: Servo.cpp:74
Servo(uint32_t channel)
Definition: Servo.cpp:37
void SetAngle(float angle)
Definition: Servo.cpp:101
void Set(float value)
Definition: Servo.cpp:64
float Get()
Definition: Servo.cpp:85
float GetAngle()
Definition: Servo.cpp:121