Profiled Servo
Extension of the extended Servo interface that allows for motion profiling via a TrapezoidProfile. This extension also offers refresh rate and position cache tolerance handling for loop time optimisation similar to an SimpleRotator.
This class serves as a drop-in replacement for the Servo, similar to Motor with the DcMotor. Do note that this class cannot be casted to a ServoImplEx instance, but it does implement the extended PwmControl interface for extended operations.
Author
Lucas Bubner, 2024
Since
5.1.0
Inherited properties
Functions
Link copied to clipboard
Return to standard servo controls without a motion profile.
Link copied to clipboard
Returns the current PWM range limits for the servo
Link copied to clipboard
Returns whether the PWM is energized for this particular servo
Link copied to clipboard
Sets the trapezoidal constraints to apply to this servo's positions.
Link copied to clipboard
Sets the current position of the servo, expressed as a fraction of its available range.
Link copied to clipboard
Set the delta in servo position required to propagate a hardware write.
Link copied to clipboard
Set the refresh rate of the servo that will be a minimum time between hardware writes.
Link copied to clipboard
Individually denergizes the PWM for this particular servo
Link copied to clipboard
Individually energizes the PWM for this particular servo.
Link copied to clipboard
Sets the PWM range limits for the servo