Skip to content
Snippets Groups Projects
Commit 36f15c95 authored by Randy Mackay's avatar Randy Mackay
Browse files

ArduCopter: move setting of land's yaw mode to the do_land function

parent 05e59f6f
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,6 @@ static void process_nav_command() ...@@ -17,7 +17,6 @@ static void process_nav_command()
break; break;
case MAV_CMD_NAV_LAND: // 21 LAND to Waypoint case MAV_CMD_NAV_LAND: // 21 LAND to Waypoint
set_yaw_mode(YAW_HOLD);
do_land(); do_land();
break; break;
...@@ -292,6 +291,9 @@ static void do_land() ...@@ -292,6 +291,9 @@ static void do_land()
set_next_WP(&current_loc); set_next_WP(&current_loc);
wp_control = LOITER_MODE; wp_control = LOITER_MODE;
// hold current heading
set_yaw_mode(YAW_HOLD);
set_throttle_mode(THROTTLE_LAND); set_throttle_mode(THROTTLE_LAND);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment