Commit Graph

57 Commits

Author SHA1 Message Date
Xiang Xiao
a29d9ea9da fsutils/examples: Include unistd.h explicitly
to get the prototypes or macros are defined in it

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-05 08:46:59 +02:00
Neo Xu
185ebab90f apps/industry: add scpi parser lib
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
2022-12-22 00:59:10 +08:00
raiden00pl
8609c92081 industry/foc/fixed16/foc_ident.c: add b16_t overflow protection 2022-11-04 02:08:08 +08:00
raiden00pl
4beb637925 industry/foc/fixed16/foc_ident.c: fix div operation 2022-11-04 02:08:08 +08:00
raiden00pl
9517b46958 industry/foc/fixed16/foc_ident.c: port changes from float32 implementation 2022-11-04 02:08:08 +08:00
raiden00pl
8d61a10a74 industry/foc/foc_ident: make the Ki resistance measurement parameter configurable
The hardcoded parameter may not be suitable for various types of motors
2022-10-24 01:14:52 +08:00
Xiang Xiao
4941182cc6 Make.defs: Change "ifeq ($(XXX),y)" to "ifneq ($(XXX),)
to support the tristate option correctly and unify the usage

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 14:59:08 +02:00
Xiang Xiao
9291d07a87 Fix the coding style issue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-06 12:20:32 +02:00
zouboan
d1cbbcdb41 reset state machine to support identification once more without restart app 2022-08-22 13:57:12 +08:00
zouboan
bd82e8d39f improve flux linkage identification method
improve flux linkage identification method
2022-08-22 13:57:12 +08:00
zouboan
30dbdf71ff industry/foc foc_ident: adding flux linkage identification 2022-06-01 01:06:26 +08:00
zouboan
5ae5ab7f44 industry/foc foc_ident: improving the measuring of resistance 2022-06-01 01:06:26 +08:00
raiden00pl
fbb09ff128 foclib/fixed16: add support for observers 2022-02-20 21:55:14 +08:00
raiden00pl
52beb5f717 industry/foc/float: cosmetics 2022-02-20 21:55:14 +08:00
raiden00pl
7df20da96c industry/foc: refactor and fixes for angle observers 2022-02-20 07:36:36 +08:00
raiden00pl
8422f9c3f9 industry/foc: remove choice option for angle observers 2022-02-20 07:36:36 +08:00
raiden00pl
c16f1408a6 industry/foc: update comments 2022-02-20 07:36:36 +08:00
raiden00pl
d76a7c242b industry/foc: fix compilation for smo 2022-02-20 07:36:36 +08:00
raiden00pl
d6cdc5a423 industry/foc: rename dir to sensor_dir to be clear that it relates to the direction of the sensor, no movement direction 2022-02-20 07:36:36 +08:00
zouboan
34e4da2304 industry/foc: add support for angle from sensorless observer 2022-02-19 15:37:35 +01:00
raiden00pl
5ef9d3630b industry/foc/float: add velocity observers support 2022-02-16 23:49:12 +08:00
zouboan
1e2b0fc790 new commit 2022-01-12 17:36:01 +01:00
Fotis Panagiotopoulos
bc5d8034f1 Typo fixes. 2022-01-06 10:30:41 +08:00
Xiang Xiao
ea9db635d6 industry/foc: Fix the wrong header file inclusion
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-12-20 09:13:21 +01:00
raiden00pl
54c0b9a9d8 industry/foc/foc_align: add support for sensor index search 2021-11-07 03:46:17 -06:00
raiden00pl
171a3c41df industry/foc/qenco: add support for encoder index 2021-11-07 03:44:03 -06:00
raiden00pl
5a9b3a70f7 industry/foc/fixed16/foc_ang_hall.c: fix warning 2021-11-04 13:50:57 -05:00
raiden00pl
9076c899d4 industry/foc/fixed16/foc_align.c: fix incorrect b16_t operations 2021-11-04 13:50:57 -05:00
raiden00pl
4001d27571 industry/foc: add support for Hall sensor 2021-10-30 10:17:07 -05:00
raiden00pl
5b52247625 industry/foc: add support for qenco 2021-10-30 10:17:07 -05:00
raiden00pl
df1638a3aa industry/foc/*/foc_openloop.c: rename files to foc_ang_openloop.c 2021-10-30 10:17:07 -05:00
raiden00pl
ff839dcf3e industry/foc/*/foc_openloop.c: adapt to previous changes 2021-10-30 10:17:07 -05:00
raiden00pl
515a25fbb8 industry/foc/*/foc_velocity.c: add methods to set the zero velocity and direction of the velocity 2021-10-30 10:17:07 -05:00
raiden00pl
6cafdae44a industry/foc/*/foc_angle.c: add methods to set the zero angle and direction of the angle 2021-10-30 10:17:07 -05:00
raiden00pl
2e61b3e310 industry/foc/*/foc_velocity.c: run method should return int 2021-10-30 10:17:07 -05:00
raiden00pl
cb78f6d0df industry/foc/*/foc_angle.c: run method should return int 2021-10-30 10:17:07 -05:00
raiden00pl
7a272dfca3 industry/foc/*/foc_model_pmsm.c: cosmetics 2021-10-30 01:19:43 -05:00
raiden00pl
f009d68a91 industry/foc: add motor identification routine 2021-10-30 01:18:12 -05:00
raiden00pl
f2fc2af8e3 industry/foc: add sensor alignment routine 2021-10-30 01:18:12 -05:00
raiden00pl
084cfa4e5e industry/foc: add general FOC routine handler 2021-10-30 01:18:12 -05:00
raiden00pl
a0fbd104fa industry/foc: add support for CORDIC 2021-07-28 14:24:08 -03:00
Alin Jerpelea
2e7e221f07 industry: abnt_codi: update licenses to Apache
Gregory Nutt is has submitted the SGA

Alan Carvalho de Assis has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-08 08:43:15 -05:00
Alin Jerpelea
ec339bc49a Makefiles: Gregory Nutt: update licenses to Apache
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-07 21:35:33 -05:00
raiden00pl
d75d6b7af0 Add FOC library
Supported features:
- float and fixed16 operations
- helper interface to interact with the kernel-side FOC device
- general interface for FOC controller
- PI current/voltage controller
- 3-phase space vector modulation
- general interface for FOC model
- PMSM model
- general interface for phase angle data
- open-loop handler
- general interface for phase velocity data
- general interface for ramp (eg. velocity ramp, torque ramp)
- (WIP) CORDIC interface for hardware acceleration
2021-04-10 00:39:09 -05:00
Maciej Wójcik
21049ece6e Rewritten READMEs to Markdown 2020-07-25 01:01:51 -07:00
Maciej Wójcik
51e6645f71 Rename README and README.txt to README.md 2020-07-25 01:01:51 -07:00
Xiang Xiao
deaa6c5b7b build: Replace $(TOPDIR)/Make.defs with $(APPDIR)/Make.defs
and move NUTTXLIB defintion to the common place

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-07-09 15:17:37 -03:00
Xiang Xiao
ead498a788 build: Remove the workaround for the inexistence of .config/Make.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
41d88f06e7 Run codespell -w with the latest dictonary again 2020-02-23 07:10:14 -06:00
chao.an
f28eca9dbc Make.defs: Use complete include path 2020-02-19 12:56:10 -06:00