Copter: brake disarms if landed
This commit is contained in:
parent
8d05eaae16
commit
dd9f271d43
@ -43,13 +43,14 @@ static void brake_run()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ap.land_complete) {
|
|
||||||
// ToDo: What do we do if we are landed? Disarm?)
|
|
||||||
}
|
|
||||||
|
|
||||||
// relax stop target if we might be landed
|
// relax stop target if we might be landed
|
||||||
if (land_complete_maybe()) {
|
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
|
// run brake controller
|
||||||
|
Loading…
Reference in New Issue
Block a user