Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger committed Mar 28, 2023
1 parent 5e419d2 commit ab23199
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sw/airborne/modules/nav/nav_rotorcraft_hybrid.c
Expand Up @@ -197,9 +197,9 @@ static void nav_hybrid_circle(struct EnuCoor_f *wp_center, float radius)
NormRadAngle(trigo_diff);
nav_rotorcraft_base.circle.radians += trigo_diff;
// progress angle
float progess_angle = GUIDANCE_INDI_NAV_CIRCLE_DIST / abs_radius;
Bound(progess_angle, M_PI / 16.f, M_PI / 4.f);
float alpha = nav_rotorcraft_base.circle.qdr - sign_radius * progess_angle;
float progress_angle = GUIDANCE_INDI_NAV_CIRCLE_DIST / abs_radius;
Bound(progress_angle, M_PI / 16.f, M_PI / 4.f);
float alpha = nav_rotorcraft_base.circle.qdr - sign_radius * progress_angle;
// final target position, should be on the circle, for display
nav.target.x = wp_center->x + cosf(alpha) * abs_radius;
nav.target.y = wp_center->y + sinf(alpha) * abs_radius;
Expand Down

0 comments on commit ab23199

Please sign in to comment.