Skip to content
Snippets Groups Projects
Commit aabcc2bb authored by Andrew Tridgell's avatar Andrew Tridgell
Browse files

Plane: fixed a bug in PWM based throttle failsafe

many thanks to Sam Tabor for finding this bug!
parent 27a3b5fb
No related branches found
No related tags found
No related merge requests found
...@@ -177,7 +177,10 @@ static void control_failsafe(uint16_t pwm) ...@@ -177,7 +177,10 @@ static void control_failsafe(uint16_t pwm)
channel_roll->radio_in = channel_roll->radio_trim; channel_roll->radio_in = channel_roll->radio_trim;
channel_pitch->radio_in = channel_pitch->radio_trim; channel_pitch->radio_in = channel_pitch->radio_trim;
channel_rudder->radio_in = channel_rudder->radio_trim; channel_rudder->radio_in = channel_rudder->radio_trim;
channel_throttle->radio_in = channel_throttle->radio_min;
// note that we don't set channel_throttle->radio_in to radio_trim,
// as that would cause throttle failsafe to not activate
channel_roll->control_in = 0; channel_roll->control_in = 0;
channel_pitch->control_in = 0; channel_pitch->control_in = 0;
channel_rudder->control_in = 0; channel_rudder->control_in = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment