mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 03:03:34 +08:00
set _triplet_lat_lon_finite true to avoid landing to not the current location, see #7990
This commit is contained in:
@@ -1744,6 +1744,8 @@ void MulticopterPositionControl::control_auto(float dt)
|
|||||||
if (!_mode_auto || !_vehicle_status.is_rotary_wing) {
|
if (!_mode_auto || !_vehicle_status.is_rotary_wing) {
|
||||||
if (!_mode_auto) {
|
if (!_mode_auto) {
|
||||||
_mode_auto = true;
|
_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;
|
_reset_pos_sp = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user