Servo
Background: PWM vs. PPM, And Servos
Todo
Servo
Link to this document: Background: PWM vs. PPM, And Servos
Explain how PPM and PWM relate (in Sphinx/RST): the servo interprets its input as PPM, but the servo class generates PWM output. Or so.
Give links
Link to servo datasheet
Class Description
-
class SysFS_Servo
PPM servo driver on top of PWM
blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
Public Functions
-
SysFS_Servo(SysFS_PWM_Pin pwm, uint64_t duty_mid, uint64_t duty_min, uint64_t duty_max)
Constructor
- Parameters:
pwm – blah blah blah blah blah blah
duty_mid – blah blah blah blah blah blah
duty_min – blah blah blah blah blah blah
duty_max – blah blah blah blah blah blah
-
void set_position(int position)
Set position
explain unit of position, and its relation to duty_* properties given in the constructor
- Parameters:
position – blah blah blah blah blah blah
-
SysFS_Servo(SysFS_PWM_Pin pwm, uint64_t duty_mid, uint64_t duty_min, uint64_t duty_max)