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

Copter: bug fix for RTL yaw control

Nose was only pointing home if your initial altitude was above the
RTL_ALT
parent 220e7b01
No related branches found
No related tags found
No related merge requests found
......@@ -536,8 +536,8 @@ static bool verify_RTL()
// Set wp navigation target to above home
wp_nav.set_destination(Vector3f(0,0,get_RTL_alt()));
// set yaw mode
set_yaw_mode(YAW_HOLD);
// point nose towards home (maybe)
set_yaw_mode(get_wp_yaw_mode(true));
// advance to next rtl state
rtl_state = RTL_STATE_RETURNING_HOME;
......
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