Function rc_motor_brake¶
Defined in File motor.h
Function Documentation¶
-
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.
- Parameters
ch – [in] The motor channel (1-4) or 0 for all channels.
- Returns
0 on success, -1 on failure