mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Copter: Add option to resume precland after reposiiton
This commit is contained in:
parent
4fd2288082
commit
3859d153fa
@ -667,6 +667,13 @@ void Mode::land_run_horizontal_control()
|
|||||||
AP::logger().Write_Event(LogEvent::LAND_REPO_ACTIVE);
|
AP::logger().Write_Event(LogEvent::LAND_REPO_ACTIVE);
|
||||||
}
|
}
|
||||||
copter.ap.land_repo_active = true;
|
copter.ap.land_repo_active = true;
|
||||||
|
#if PRECISION_LANDING == ENABLED
|
||||||
|
} else {
|
||||||
|
// no override right now, check if we should allow precland
|
||||||
|
if (copter.precland.allow_precland_after_reposition()) {
|
||||||
|
copter.ap.land_repo_active = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user