mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
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:
parent
220e7b019c
commit
1b52ee211a
@ -536,8 +536,8 @@ static bool verify_RTL()
|
|||||||
// Set wp navigation target to above home
|
// Set wp navigation target to above home
|
||||||
wp_nav.set_destination(Vector3f(0,0,get_RTL_alt()));
|
wp_nav.set_destination(Vector3f(0,0,get_RTL_alt()));
|
||||||
|
|
||||||
// set yaw mode
|
// point nose towards home (maybe)
|
||||||
set_yaw_mode(YAW_HOLD);
|
set_yaw_mode(get_wp_yaw_mode(true));
|
||||||
|
|
||||||
// advance to next rtl state
|
// advance to next rtl state
|
||||||
rtl_state = RTL_STATE_RETURNING_HOME;
|
rtl_state = RTL_STATE_RETURNING_HOME;
|
||||||
|
Loading…
Reference in New Issue
Block a user