set _triplet_lat_lon_finite true to avoid landing to not the current location, see #7990

This commit is contained in:
eric 2017-09-21 10:09:20 +08:00 committed by Dennis Mannhart
parent b4755297ec
commit 557559cd85

View File

@ -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;