|
|
|
@ -156,7 +156,7 @@ static void rtl_climb_return_descent_run()
@@ -156,7 +156,7 @@ static void rtl_climb_return_descent_run()
|
|
|
|
|
attitude_control.angleef_rp_rateef_y(wp_nav.get_roll(), wp_nav.get_pitch(), target_yaw_rate); |
|
|
|
|
}else{ |
|
|
|
|
// roll, pitch from waypoint controller, yaw heading from auto_heading() |
|
|
|
|
attitude_control.angleef_rpy(wp_nav.get_roll(), wp_nav.get_pitch(), get_auto_heading()); |
|
|
|
|
attitude_control.angleef_rpy(wp_nav.get_roll(), wp_nav.get_pitch(), get_auto_heading(),true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// check if we've completed this stage of RTL |
|
|
|
@ -219,7 +219,7 @@ static void rtl_loiterathome_run()
@@ -219,7 +219,7 @@ static void rtl_loiterathome_run()
|
|
|
|
|
attitude_control.angleef_rp_rateef_y(wp_nav.get_roll(), wp_nav.get_pitch(), target_yaw_rate); |
|
|
|
|
}else{ |
|
|
|
|
// roll, pitch from waypoint controller, yaw heading from auto_heading() |
|
|
|
|
attitude_control.angleef_rpy(wp_nav.get_roll(), wp_nav.get_pitch(), get_auto_heading()); |
|
|
|
|
attitude_control.angleef_rpy(wp_nav.get_roll(), wp_nav.get_pitch(), get_auto_heading(),true); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// check if we've completed this stage of RTL |
|
|
|
|