navigator: only apply breaking for multirotors

This commit is contained in:
Julian Oes 2021-12-15 11:32:18 +01:00 committed by Daniel Agar
parent fa6c051ae5
commit 6021b8efb3
1 changed files with 6 additions and 1 deletions

View File

@ -110,7 +110,12 @@ Loiter::set_loiter_position()
setLoiterItemFromCurrentPositionSetpoint(&_mission_item);
} else {
setLoiterItemFromCurrentPositionWithBreaking(&_mission_item);
if (_navigator->get_vstatus()->vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROTARY_WING) {
setLoiterItemFromCurrentPositionWithBreaking(&_mission_item);
} else {
setLoiterItemFromCurrentPosition(&_mission_item);
}
}
}