Combined brake and reverse
This feature implements common RC car with RC braking system. Negative input will result into torque brake. To reverse, first release the input (enter the center deadzone). Setting input to negative value then will start reversing.
This feature is enabled by setting drvopts to 1. Then, it is important to map your control input symmetrically (either analog or servo PWM). You can also bias the throttle input to either of the sides by shifting the center:
- Set
/pwm_input/centerto1500and/or/analog_input/centerto2500(values below will result into braking)
Finally, you can set driver modes in each of the app modes:
- Set
ctl_modeto2- current mode for forward drive (most natural choice to control acceleration / torque) - Keep
ctl_brake_modeat8- current brake mode for braking (most natural choice to control deceleration / torque) - Set
ctl_reverse_modeto3- reversing in voltage with freewheel, to control the speed