Browse Source

Plane: use throttle in for transition max comparison

zr-v5.1
Iampete1 5 years ago committed by Andrew Tridgell
parent
commit
abee62abc4
  1. 2
      ArduPlane/quadplane.cpp

2
ArduPlane/quadplane.cpp

@ -1760,7 +1760,7 @@ void QuadPlane::update_transition(void) @@ -1760,7 +1760,7 @@ void QuadPlane::update_transition(void)
plane.nav_pitch_cd,
0);
// set throttle at either hover throttle or current throttle, whichever is higher, through the transition
attitude_control->set_throttle_out(MAX(motors->get_throttle_hover(),motors->get_throttle()), true, 0);
attitude_control->set_throttle_out(MAX(motors->get_throttle_hover(),attitude_control->get_throttle_in()), true, 0);
break;
}

Loading…
Cancel
Save