raiden00pl
1095aec162
examples/foc: start from the beginning if control loop is started
...
After the start request to FOC device, we should return to the
beginning of the loop and wait for the first synchronization event.
This also fixes the problem with the extended first loop cycle,
so we can remove the workaround in foc_perf.
2023-11-13 08:48:22 -08:00
raiden00pl
9ba7092000
examples/foc: add support for control loop performance measurements
...
also format CMakeLists.txt
2023-11-06 09:02:28 +08: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
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
raiden00pl
22ed7da99c
examples/foc: move the common FOC dev logic from threads to one place
2021-10-31 12:13:45 -05:00
raiden00pl
e0ef3cecb9
examples/foc: move FOC device data to foc_device_s
2021-10-31 12:13:45 -05:00
Xiang Xiao
213e60232f
Include assert.h in necessary place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-05-31 08:51:22 +02: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