mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Merge "Updates the C++ servo class to have the PWM values that are on the spec sheet"
This commit is contained in:
@@ -51,6 +51,9 @@ private:
|
||||
return kMaxServoAngle - kMinServoAngle;
|
||||
}
|
||||
|
||||
static constexpr float kMaxServoAngle = 170.0;
|
||||
static constexpr float kMaxServoAngle = 180.0;
|
||||
static constexpr float kMinServoAngle = 0.0;
|
||||
|
||||
static constexpr float kDefaultMaxServoPWM = 2.4;
|
||||
static constexpr float kDefaultMinServoPWM = .6;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user