From 078fd78af7c218231be6770e3318480ccee43502 Mon Sep 17 00:00:00 2001 From: Mateusz Szafoni Date: Sat, 7 Jul 2018 18:17:42 +0000 Subject: [PATCH] Merged in raiden00/nuttx (pull request #669) libdsp/lib_motor.c: ouch, forgot to change variable name * libdsp: initial commit * libdsp: cosmetics * stm32f334-disco/buckboost: use a PID controller from libdsp * stm32_adc.h: fix typo * stm32_dac.c: set OUTEN bit for DAC1CH2 and DAC2CH1 * stm32_hrtim: cosmetic changes * power/motor: direction parameter is now int8 + add overload fault * libdsp: all floats with f-sufix libdsp: add precision option for library libdsp: add debug option for library and assertions in functions libdsp: add current samples correction for SVM3 libds: add some motor control specific functions libdsp: add basic speed observer libdsp: fix phase shift in SMO observer libdsp: add more logic to FOC config/sim/dsptest: add dsptest configuration * libdsp/lib_motor.c: remove unused comparation * libdsp/lib_observer.c: update some comments * libdsp/lib_motor.c: ouch, forgot to change variable name Approved-by: GregoryN --- libs/libdsp/lib_motor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libdsp/lib_motor.c b/libs/libdsp/lib_motor.c index 7998a1ec9e..21c835da82 100644 --- a/libs/libdsp/lib_motor.c +++ b/libs/libdsp/lib_motor.c @@ -390,7 +390,7 @@ void motor_phy_params_init(FAR struct motor_phy_params_s *phy, uint8_t poles, DEBUGASSERT(phy != NULL); phy->p = poles; - phy->res_base = res_base; + phy->res_base = res; phy->ind = ind; phy->one_by_ind = 1.0f/ind;