Function rc_pwm_init#
Defined in File pwm.h
Function Documentation#
-
int rc_pwm_init(int ss, int frequency)#
Configures subsystem 0, 1, or 2 to operate at a particular frequency.
This may be called at runtime to change the pwm frequency without stopping the motors or pwm signal.
- Parameters:
ss – [in] Subsystem 0 1 or 2
frequency – [in] The frequency in HZ
- Returns:
Returns 0 on success or -1 on failure.