Skip to content
Snippets Groups Projects
Commit 79bd8b4f authored by Dr Gareth Owen's avatar Dr Gareth Owen Committed by Randy Mackay
Browse files

rtl resets yaw to same as when armed - unless user specifies otherwise

parent 0460147a
No related branches found
No related tags found
No related merge requests found
...@@ -637,7 +637,11 @@ static bool verify_RTL() ...@@ -637,7 +637,11 @@ static bool verify_RTL()
rtl_loiter_start_time = millis(); rtl_loiter_start_time = millis();
// give pilot back control of yaw // give pilot back control of yaw
set_yaw_mode(YAW_HOLD); if(get_wp_yaw_mode(true) != YAW_HOLD) {
set_yaw_mode(YAW_RESETTOARMEDYAW); // yaw back to initial yaw on take off
} else {
set_yaw_mode(YAW_HOLD);
}
// advance to next rtl state // advance to next rtl state
rtl_state = RTL_STATE_LOITERING_AT_HOME; rtl_state = RTL_STATE_LOITERING_AT_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