Function rc_pwm_set_duty#
Defined in File pwm.h
Function Documentation#
-
int rc_pwm_set_duty(int ss, char ch, double duty)#
Sets the duty cycle of a specific pwm channel.
- Parameters:
ss – [in] subsystem 0,1,2
ch – [in] channel ‘A’ or ‘B’
duty – [in] between 0.0 (off) and 1.0(full on)
- Returns:
Returns 0 on success or -1 on failure.