Copter: brake disarms if landed

This commit is contained in:
Randy Mackay 2015-05-17 14:28:55 +09:00
parent 8d05eaae16
commit dd9f271d43
1 changed files with 6 additions and 5 deletions

View File

@ -43,13 +43,14 @@ static void brake_run()
return;
}
if (ap.land_complete) {
// ToDo: What do we do if we are landed? Disarm?)
}
// relax stop target if we might be landed
if (land_complete_maybe()) {
// ToDo: What do we do here?
wp_nav.loiter_soften_for_landing();
}
// if landed immediately disarm
if (ap.land_complete) {
init_disarm_motors();
}
// run brake controller