Plane:add taildrag holdown to TAKEOFF mode

This commit is contained in:
Henry Wurzburg 2023-09-08 22:04:58 -05:00 committed by Andrew Tridgell
parent 99012bd525
commit e1d91e3007

View File

@ -262,7 +262,7 @@ int16_t Plane::get_takeoff_pitch_min_cd(void)
*/
int8_t Plane::takeoff_tail_hold(void)
{
bool in_takeoff = ((control_mode == &mode_auto && !auto_state.takeoff_complete) ||
bool in_takeoff = ((plane.flight_stage == AP_FixedWing::FlightStage::TAKEOFF) ||
(control_mode == &mode_fbwa && auto_state.fbwa_tdrag_takeoff_mode));
if (!in_takeoff) {
// not in takeoff