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_standby

Function Documentation

int rc_motor_standby(int standby_en)

Toggle the H-bridges in and out of low-power standby mode.

This is an entirely optional function as calling rc_motor_cleanup when your program closes will put the h-bridges into standby mode and then calling rc_motor_init at the beginning of your program will take them out of standby mode. However, if the user wishes to toggle in and out of standby mode in their program (for example while paused) then they can use this function.

Parameters

standby_en[in] 1 to enable standby mode, 0 to disable

Returns

0 on success, -1 on failure.