Go to the source code of this file.
|
int | rc_motor_init (void) |
| Initializes all 4 motors and leaves them in a free-spin (0 throttle) state. More...
|
|
int | rc_motor_init_freq (int pwm_frequency_hz) |
| Just like rc_motor_init but allows the user to set the pwm frequency. More...
|
|
int | rc_motor_cleanup (void) |
| Puts all 4 motors into a free-spin (0 throttle) state, puts the h-bridges into standby mode, and closes all file pointers to GPIO and PWM systems. More...
|
|
int | rc_motor_standby (int standby_en) |
| Toggle the H-bridges in and out of low-power standby mode. More...
|
|
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 channel. More...
|
|
int | rc_motor_free_spin (int ch) |
| Puts a motor into a zero-throttle state allowing it to spin freely. More...
|
|
int | rc_motor_brake (int ch) |
| Connects the motor terminal pairs together which makes the motor fight against its own back EMF turning it into a brake resisting rotation. More...
|
|