forked from Archive/PX4-Autopilot
navigator: only apply breaking for multirotors
This commit is contained in:
parent
fa6c051ae5
commit
6021b8efb3
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue