mirror of https://github.com/ArduPilot/ardupilot
Plane: Prevent quadplane.assign_tilt_to_fwd_thr() being called twice
This commit is contained in:
parent
c2d6db13ec
commit
fb7c383946
|
@ -36,7 +36,10 @@ void ModeQStabilize::update()
|
||||||
plane.nav_pitch_cd = pitch_input * plane.quadplane.aparm.angle_max;
|
plane.nav_pitch_cd = pitch_input * plane.quadplane.aparm.angle_max;
|
||||||
}
|
}
|
||||||
|
|
||||||
plane.quadplane.assign_tilt_to_fwd_thr();
|
if (plane.control_mode->mode_number() == Mode::Number::QSTABILIZE) {
|
||||||
|
// protect against this function running twice
|
||||||
|
plane.quadplane.assign_tilt_to_fwd_thr();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// quadplane stabilize mode
|
// quadplane stabilize mode
|
||||||
|
|
Loading…
Reference in New Issue