Skip to content

Commit

Permalink
set _triplet_lat_lon_finite true to avoid landing to not the current …
Browse files Browse the repository at this point in the history
…location, see #7990
  • Loading branch information
whyscience committed Sep 22, 2017
1 parent b475529 commit 6bfa775
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/mc_pos_control/mc_pos_control_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6bfa775

Please sign in to comment.