27 #define RC_MOTOR_DEFAULT_PWM_FREQ 25000 int rc_motor_brake(int ch)
Connects the motor terminal pairs together which makes the motor fight against its own back EMF turni...
int rc_motor_set(int ch, double duty)
Sets the bidirectional duty cycle (power) to a single motor or all motors if 0 is provided as a chann...
int rc_motor_free_spin(int ch)
Puts a motor into a zero-throttle state allowing it to spin freely.
int rc_motor_init_freq(int pwm_frequency_hz)
Just like rc_motor_init but allows the user to set the pwm frequency.
int rc_motor_init(void)
Initializes all 4 motors and leaves them in a free-spin (0 throttle) state.
int rc_motor_standby(int standby_en)
Toggle the H-bridges in and out of low-power standby mode.
int rc_motor_cleanup(void)
Puts all 4 motors into a free-spin (0 throttle) state, puts the h-bridges into standby mode...