This is an automated email from the ASF dual-hosted git repository. acassis pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 8bdb78b446 libdsp/lib_observer.c: use float numbers in all calculations 8bdb78b446 is described below commit 8bdb78b446e7cd35dcf77aaaca504215f0a72cc2 Author: raiden00pl <raide...@railab.me> AuthorDate: Sun Oct 15 10:15:58 2023 +0200 libdsp/lib_observer.c: use float numbers in all calculations we want to use FPU instructions in calculations not __aeabi --- libs/libdsp/lib_observer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/libdsp/lib_observer.c b/libs/libdsp/lib_observer.c index 43be650bda..82e0b64216 100644 --- a/libs/libdsp/lib_observer.c +++ b/libs/libdsp/lib_observer.c @@ -612,10 +612,10 @@ void motor_aobserver_nfo(FAR struct motor_aobserver_f32_s *o, * as that makes the angle very unstable. */ - if (vector2d_mag(nfo->x1, nfo->x2) < (phy->flux_link * 0.5)) + if (vector2d_mag(nfo->x1, nfo->x2) < (phy->flux_link * 0.5f)) { - nfo->x1 *= 1.1; - nfo->x2 *= 1.1; + nfo->x1 *= 1.1f; + nfo->x2 *= 1.1f; } angle = fast_atan2(nfo->x2 - l_ib, nfo->x1 - l_ia);