industry/foc/nfo: use float numbers in all calculations

we want to use FPU instructions in calculations not __aeabi
This commit is contained in:
raiden00pl 2023-10-15 10:20:57 +02:00 committed by Xiang Xiao
parent 7de8d0603f
commit 6a814dd41f

View File

@ -291,8 +291,8 @@ static int foc_angle_onfo_run_f32(FAR foc_angle_f32_t *h,
/* Update and the observer gain. */
dyn_gain = LINEAR_MAP(fabsf(duty_now), 0.0, 1.0,
ob->cfg.gain * ob->cfg.gain_slow, ob->cfg.gain) * 0.5;
dyn_gain = LINEAR_MAP(fabsf(duty_now), 0.0f, 1.0f,
ob->cfg.gain * ob->cfg.gain_slow, ob->cfg.gain) * 0.5f;
/* Update observer */