mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 15:23:57 -04:00
Plane:add taildrag holdown to TAKEOFF mode
This commit is contained in:
parent
99012bd525
commit
e1d91e3007
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user