This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_motor_init

Function Documentation

int rc_motor_init(void)

Initializes all 4 motors and leaves them in a free-spin (0 throttle) state.

Note, if the user is optionally using the rc_motor_standby functionality they should be aware that rc_motor_init starts standby mode in a disabled state so it is not necessary for the majority of users who are not interested in standby mode.

This starts the motor drivers at RC_MOTOR_DEFAULT_PWM_FREQ. To use another frequency initialize with rc_motor_init_freq instead.

Returns

0 on success, -1 on failure which is usually due to lack of user permissions to access the gpio and pwm systems.