2021-03-20 21:06:54 +01:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
|
|
#
|
|
|
|
|
|
|
|
config INDUSTRY_FOC
|
|
|
|
bool "FOC Library"
|
|
|
|
default n
|
|
|
|
select LIBDSP
|
|
|
|
---help---
|
|
|
|
Enable or disable the FOC Library
|
|
|
|
|
|
|
|
if INDUSTRY_FOC
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_CORDIC
|
|
|
|
bool "Enable CORDIC support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for CORDIC hardware acceleration
|
|
|
|
|
2021-07-28 08:49:35 +02:00
|
|
|
if INDUSTRY_FOC_CORDIC
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_CORDIC_DEVPATH
|
|
|
|
string "CORDIC device path"
|
|
|
|
default "/dev/cordic0"
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_CORDIC_ANGLE
|
|
|
|
bool "Enable CORDIC for phase angle"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_CORDIC_DQSAT
|
|
|
|
bool "Enable CORDIC for dq saturation"
|
|
|
|
default n
|
|
|
|
|
|
|
|
endif # INDUSTRY_FOC_CORDIC
|
|
|
|
|
2021-03-20 21:06:54 +01:00
|
|
|
config INDUSTRY_FOC_FIXED16
|
|
|
|
bool "Enable support for fixed16"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for FOC fixed16 calculations
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_FLOAT
|
|
|
|
bool "Enable support for float"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for FOC float calculations
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_HANDLER_PRINT
|
|
|
|
bool "FOC handler state printer"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for FOC handler state printer
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_ANGLE_OPENLOOP
|
|
|
|
bool "FOC angle open-loop handler"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Enable support for open-loop angle handler
|
|
|
|
|
2022-02-19 18:11:53 +01:00
|
|
|
config INDUSTRY_FOC_ANGLE_OSMO
|
|
|
|
bool "Enable slidmode angle observer"
|
2022-02-13 10:10:09 +01:00
|
|
|
default n
|
|
|
|
---help---
|
2022-02-19 18:11:53 +01:00
|
|
|
Enable support for SMO observer handler
|
2022-02-13 10:10:09 +01:00
|
|
|
|
|
|
|
config INDUSTRY_FOC_ANGLE_ONFO
|
2022-02-19 18:11:53 +01:00
|
|
|
bool "Enable fluxlink angle observer"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for NFO observer handler
|
2022-02-13 10:10:09 +01:00
|
|
|
|
2021-10-29 13:02:36 +02:00
|
|
|
config INDUSTRY_FOC_ANGLE_QENCO
|
|
|
|
bool "FOC angle quadrature encoder handler"
|
|
|
|
default n
|
|
|
|
depends on SENSORS_QENCODER
|
|
|
|
---help---
|
|
|
|
Enable support for quadrature encoder angle handler
|
|
|
|
|
2021-10-29 13:05:42 +02:00
|
|
|
config INDUSTRY_FOC_ANGLE_HALL
|
|
|
|
bool "FOC angle 3-phase hall handler"
|
|
|
|
default n
|
|
|
|
depends on SENSORS_HALL3PHASE
|
|
|
|
---help---
|
|
|
|
Enable support for 3-phase hall sensor angle handler
|
|
|
|
|
|
|
|
if INDUSTRY_FOC_ANGLE_HALL
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "FOC Hall sensor type"
|
|
|
|
default INDUSTRY_FOC_ANGLE_HALL_120DEG
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_ANGLE_HALL_120DEG
|
|
|
|
bool "Hall sensor 120 deg"
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_ANGLE_HALL_60DEG
|
|
|
|
bool "Hall sensor 60 deg (not tested)"
|
|
|
|
|
|
|
|
endchoice # FOC Hall sensor type
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_ANGLE_HALL_EST
|
|
|
|
bool "FOC Hall angle estimation"
|
|
|
|
default n
|
|
|
|
|
|
|
|
endif # INDUSTRY_FOC_ANGLE_HALL
|
|
|
|
|
2021-03-20 21:06:54 +01:00
|
|
|
config INDUSTRY_FOC_CONTROL_PI
|
|
|
|
bool "FOC PI controller"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Enable support for classic FOC PI controller
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_MODULATION_SVM3
|
|
|
|
bool "FOC SVM3 modulation"
|
|
|
|
default y
|
|
|
|
---help---
|
|
|
|
Enable support for FOC 3-phase space vector modulation
|
|
|
|
|
2023-10-12 12:40:14 +02:00
|
|
|
config INDUSTRY_FOC_FEEDFORWARD
|
|
|
|
bool "FOC current controller feedforward compensation"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for current controller feed forward compensation
|
|
|
|
|
2021-03-20 21:06:54 +01:00
|
|
|
config INDUSTRY_FOC_MODEL_PMSM
|
|
|
|
bool "FOC PMSM model support"
|
|
|
|
select INDUSTRY_FOC_HAVE_MODEL
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for PMSM model
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_HAVE_MODEL
|
|
|
|
bool
|
|
|
|
default n
|
|
|
|
|
2021-10-29 13:33:45 +02:00
|
|
|
config INDUSTRY_FOC_ALIGN
|
|
|
|
bool "FOC sensor alignment routine"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for angle sensor alignment routine (zero offset + direction)
|
|
|
|
|
2021-11-06 18:59:01 +01:00
|
|
|
if INDUSTRY_FOC_ALIGN
|
|
|
|
|
2023-10-16 14:14:47 +02:00
|
|
|
config INDUSTRY_FOC_ALIGN_DIR
|
|
|
|
bool "FOC alignment direction support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for sensor direction alignment
|
|
|
|
|
2021-11-06 18:59:01 +01:00
|
|
|
config INDUSTRY_FOC_ALIGN_INDEX
|
|
|
|
bool "FOC alignment index search support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for sensor alignment index search
|
|
|
|
|
|
|
|
endif # INDUSTRY_FOC_ALIGN
|
|
|
|
|
2021-10-29 13:35:48 +02:00
|
|
|
config INDUSTRY_FOC_IDENT
|
|
|
|
bool "FOC motor identification routine"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for motor identification routine (phase resistance and phase inductance)
|
|
|
|
|
2022-05-31 14:12:16 +02:00
|
|
|
if INDUSTRY_FOC_IDENT
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_IDENT_FLUX
|
|
|
|
bool "FOC flux linkage identification support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for flux linkage identification
|
|
|
|
|
|
|
|
endif # INDUSTRY_FOC_IDENT
|
|
|
|
|
2022-02-16 12:10:19 +01:00
|
|
|
config INDUSTRY_FOC_VELOCITY_ODIV
|
|
|
|
bool "FOC velocity DIV observer"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for the velocity DIV observer
|
|
|
|
|
|
|
|
config INDUSTRY_FOC_VELOCITY_OPLL
|
|
|
|
bool "FOC velocity PLL observer"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable support for the velocity PLL observer
|
|
|
|
|
2021-03-20 21:06:54 +01:00
|
|
|
endif
|