Skip to main content
Firmware Stable

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/center to 1500 and/or /analog_input/center to 2500 (values below will result into braking)

Finally, you can set driver modes in each of the app modes:

  • Set ctl_mode to 2 - current mode for forward drive (most natural choice to control acceleration / torque)
  • Keep ctl_brake_mode at 8 - current brake mode for braking (most natural choice to control deceleration / torque)
  • Set ctl_reverse_mode to 3 - reversing in voltage with freewheel, to control the speed