mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
set _triplet_lat_lon_finite true to avoid landing to not the current location, see #7990
This commit is contained in:
parent
b4755297ec
commit
557559cd85
@ -1744,6 +1744,8 @@ void MulticopterPositionControl::control_auto(float dt)
|
||||
if (!_mode_auto || !_vehicle_status.is_rotary_wing) {
|
||||
if (!_mode_auto) {
|
||||
_mode_auto = true;
|
||||
//set _triplet_lat_lon_finite true once switch to AUTO(e.g. LAND)
|
||||
_triplet_lat_lon_finite = true;
|
||||
}
|
||||
|
||||
_reset_pos_sp = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user