Altitude no longer resets when moving loiter WP

This commit is contained in:
Jason Short 2012-01-16 14:28:23 -08:00
parent 7468889bb7
commit 0f24860552

View File

@ -1689,7 +1689,8 @@ static void update_navigation()
wp_control = NO_NAV_MODE; wp_control = NO_NAV_MODE;
// reset LOITER to current position // reset LOITER to current position
next_WP = current_loc; next_WP.lat = current_loc.lat;
next_WP.lng = current_loc.lng;
}else{ }else{
// this is also set by GPS in update_nav // this is also set by GPS in update_nav