raiden00pl
292b0cbc28
examples/foc: change the velocity ramp parameters scale to x1
...
controlling the ramp with greather accuracy makes no practical sense
2023-10-29 10:40:27 +08:00
raiden00pl
8568439b80
examples/foc: configure acceleration and deceleration from command line
2023-10-29 10:40:27 +08:00
raiden00pl
1c922f2d2d
examples/foc: add phase angle observer support (sensorless mode)
...
This app can work now as sensorless ESC.
Also introduce a cmd line option that force open-loop control
which is useful when tuning angle/velocity observers
2023-10-19 19:33:43 +08:00
raiden00pl
4652c5516d
examples/foc: rename SETPOINT_ADC_SCALE to SETPOINT_INTF_SCALE
...
SETPOINT_INTF_SCALE is more appropriate name because this definition is not only used for ADC scale
2023-10-18 14:15:47 +08:00
raiden00pl
de6a384668
examples/foc: add velocity PI controller
2023-10-18 14:15:12 +08:00
raiden00pl
9dde6983e6
examples/foc: add support for feedforward compensation
2023-10-17 22:45:26 +08:00
raiden00pl
fd0da7d4df
examples/foc: open-loop needs initial phase alignment
2023-10-17 22:42:42 +08:00
raiden00pl
8e0819df04
examples/foc: add velocity observers
2023-10-17 22:42:42 +08:00
raiden00pl
9bcca69967
examples/foc: initialize motor phy
2023-10-17 22:42:42 +08:00
raiden00pl
9ee4daea43
examples/foc: configure active breake current
2023-10-17 14:24:58 +08:00
raiden00pl
8ee684e586
industry/foc: make direction alignment configurable
...
for sensorless velocity controller (ESC) we don't need to align the direction,
but we have to align the initial motor phase each time the motor start
2023-10-16 13:44:37 -04:00
raiden00pl
caba5a0a6f
examples/foc: add missing deinit calls
2023-05-15 13:19:34 -03:00
Xiang Xiao
7c37421266
Replace all sprintf with snprintf
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-05-08 21:35:16 +03:00
Gustavo Henrique Nihei
efb4e0bc91
Add another batch of missing headers throughout the repository
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-28 14:54:16 -03:00
raiden00pl
13bfad1053
examples/foc: control motor identification parameters from cmd line
2022-11-04 02:07:15 +08:00
raiden00pl
2c5dc1e4a2
examples/foc: simplify control thread configuration
2022-11-04 02:07:15 +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
893387b2c5
Fix the minor style issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-10-16 19:07:16 +02:00
raiden00pl
35c31e35c1
examples/foc: add options to run only the sensor alignment routine or the motor identification routine
2022-08-28 13:24:51 +08:00
raiden00pl
7dbd02947e
examples/foc: support for motor identification
2022-08-28 01:20:53 +08:00
raiden00pl
429f5a166f
examples/foc: terminate the control thread if no work to do
2022-08-27 23:50:58 +08:00
raiden00pl
1f4f338772
examples/foc/foc_motor_b16.c: fix open loop Q current
2022-08-15 16:42:00 +03:00
raiden00pl
95b1625a6d
examples/foc/foc_motor: store the configured FOC run mode in a separate variable
...
The controller mode can change during example execution and depends on the thread state (IDENT [not yet upstream] / ALIGN / RUN)
2022-02-17 10:30:41 +01:00
raiden00pl
3b1967ec71
examples/foc: add an option to disable motor controller logic
...
This is useful feature for debug purposes.
2022-02-16 23:57:27 +08:00
raiden00pl
e6b6c14f53
examples/foc: make the FOC current controller configurable
...
For now only the FOC PI current controller is supported, but this can be easily extended to support other control methods
2022-02-16 23:49:46 +08:00
raiden00pl
3fda1294d7
examples/foc: move setpoint and vbus configuration from foc_adc.h to foc_cfg.h
2021-12-07 07:51:12 -06:00
raiden00pl
629e5a8e62
examples/foc: add support for sensor index search
2021-11-07 03:46:17 -06:00
raiden00pl
15b66aa128
examples/foc: add Qenco support
2021-11-07 03:44:03 -06:00
raiden00pl
5ee9572531
examples/foc: add Hall sensor support
2021-11-04 13:50:57 -05:00
raiden00pl
c771942d8e
examples/foc: add support for sensor alignment
2021-11-04 13:50:57 -05:00
raiden00pl
b30f3329f6
foc/examples: initial logic to support torque, velocity and position controller modes
2021-11-04 13:50:57 -05:00
raiden00pl
b0eeefd0a5
examples/foc: add logic for controller state machine
2021-11-04 13:50:57 -05:00
raiden00pl
f9cec1c770
examples/foc: move the motor controller code to separate files
2021-10-31 12:13:45 -05:00