raiden00pl
fc863b6cd0
examples/foc: fix snprintf warning
...
fix snprintf warning:
foc_thr.c:110:39: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 7 [-Wformat-truncation=]
110 | snprintf(mqname, sizeof(mqname), "%s%d", CONTROL_MQ_MQNAME, envp->id);
| ^~
foc_thr.c:110:36: note: directive argument in the range [-2147483648, 0]
110 | snprintf(mqname, sizeof(mqname), "%s%d", CONTROL_MQ_MQNAME, envp->id);
| ^~~~~~
foc_thr.c:110:3: note: 'snprintf' output between 5 and 15 bytes into a destination of size 10
110 | snprintf(mqname, sizeof(mqname), "%s%d", CONTROL_MQ_MQNAME, envp->id);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-10-18 10:43:46 +08:00
raiden00pl
7e5a436ff9
examples/foc: add real time data capture with the NxScope library
2023-05-19 20:18:38 +08:00
raiden00pl
55b296a5c6
examples/foc/foc_thr: get controller type from controller ID
2023-05-19 20:18:38 +08:00
raiden00pl
f358bdfcb3
examples/foc: send messages only to active control threads
2023-05-15 13:19:34 -03:00
raiden00pl
cc189ef170
examples/foc: add controller IDLE mode
2023-05-15 13:19:34 -03:00
raiden00pl
2c5dc1e4a2
examples/foc: simplify control thread configuration
2022-11-04 02:07:15 +08: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
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
Petro Karashchenko
9480c0ec12
include: fix double include pre-processor guards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 17:36:21 +08:00
raiden00pl
ea27aacbd2
examples/foc: move threads related logic to a separate file
2021-12-07 07:51:12 -06: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
33b34f8852
examples/foc: open FOC device in FOC threads
2021-10-31 12:13:45 -05:00
raiden00pl
9c8e3cc46a
examples/foc: add option to disable open-loop operations
...
Initial step towards sensored control
2021-10-30 10:00:38 -05:00
raiden00pl
864a61a431
Add FOC motor controller example
...
For now, only open-loop velocity control is supported.
2021-04-10 00:40:43 -05:00