mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
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 <gnutt@nuttx.org>
This commit is contained in:
committed by
GregoryN
parent
8416d9a966
commit
078fd78af7
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user