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

Copter: bug fix for descent during loiter_turns

parent 3b982bc9
No related branches found
No related tags found
Loading
......@@ -287,6 +287,7 @@ update_circle(float dt)
// calculate target position
circle_target.x = circle_center.x + cir_radius * cosf(-circle_angle);
circle_target.y = circle_center.y - cir_radius * sinf(-circle_angle);
circle_target.z = wp_nav.get_desired_alt();
// re-use loiter position controller
wp_nav.set_loiter_target(circle_target);
......
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