Copter: bug fix for RTL yaw control

Nose was only pointing home if your initial altitude was above the
RTL_ALT
This commit is contained in:
Randy Mackay 2013-05-09 21:44:46 +09:00
parent 220e7b019c
commit 1b52ee211a

View File

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