Copter: Add option to resume precland after reposiiton

This commit is contained in:
rishabsingh3003 2023-01-29 15:39:28 +05:30 committed by Randy Mackay
parent 97b9e9da92
commit 1452b50196
1 changed files with 7 additions and 0 deletions

View File

@ -668,6 +668,13 @@ void Mode::land_run_horizontal_control()
AP::logger().Write_Event(LogEvent::LAND_REPO_ACTIVE);
}
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
}
}
}