From ab23199d72604136603b6db9313b1ccf41834fd8 Mon Sep 17 00:00:00 2001 From: Gautier Hattenberger Date: Tue, 28 Mar 2023 12:34:47 +0200 Subject: [PATCH] fix typo --- sw/airborne/modules/nav/nav_rotorcraft_hybrid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sw/airborne/modules/nav/nav_rotorcraft_hybrid.c b/sw/airborne/modules/nav/nav_rotorcraft_hybrid.c index 958b0df3520..c91cc71e553 100644 --- a/sw/airborne/modules/nav/nav_rotorcraft_hybrid.c +++ b/sw/airborne/modules/nav/nav_rotorcraft_hybrid.c @@ -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;