mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Copter: brake disarms if landed
This commit is contained in:
parent
8d05eaae16
commit
dd9f271d43
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user