Oopenvela-robotfoc : remove enter/leave_critical_section.
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
nsh: support watch command Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
examples/foc: protect control loop with critical section If the controller frequency is high, system timer interrupts will eventually interrupt the controller function, thereby increasing the execution time. This may lead to skipping the control cycle, which negatively affects the control algorithm. With this option enabled, interrupts are disabled for the duration of the controller function execution. Here example results from CONFIG_EXAMPLES_FOC_PERF output for b-g431b-esc1 board with CONFIG_EXAMPLES_FOC_NOTIFIER_FREQ=10000: 1. CONFIG_EXAMPLES_FOC_CONTROL_CRITSEC=n exec ticks=5258 nsec=30929 per ticks=21268 nsec=125105 2. CONFIG_EXAMPLES_FOC_CONTROL_CRITSEC=y exec ticks=3428 nsec=20164 per ticks=19203 nsec=112958 The difference is ~12us! | 2 个月前 | |
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> | 2 个月前 | |
nsh: support watch command Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
Merge remote-tracking branch 'remotes/mirtos/dev-upmerge-nuttx-10.2' into dev | 2 个月前 | |
nsh: support watch command Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
Merge remote-tracking branch 'remotes/mirtos/dev-upmerge-nuttx-10.2' into dev | 2 个月前 | |
examples/foc: improve perf monitor improve FOC perf monitor: - add options to choose when perf result should be printed - measure the controller thread call period | 2 个月前 | |
nsh: support watch command Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
foc : remove enter/leave_critical_section. Remove enter/leave_critical_section, and up_irq_save to clarify code logic and improve multi-core performance. Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com> | 2 个月前 | |
foc : remove enter/leave_critical_section. Remove enter/leave_critical_section, and up_irq_save to clarify code logic and improve multi-core performance. Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com> | 2 个月前 | |
fsutils/examples: Include unistd.h explicitly to get the prototypes or macros are defined in it Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Merge remote-tracking branch 'remotes/mirtos/dev-upmerge-nuttx-10.2' into dev | 2 个月前 | |
nsh: support watch command Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
examples/foc: ignore error for align and ident routines when motor controller disabled CONFIG_EXAMPLES_FOC_RUN_DISABLE option is used for tests and benchmarks, so we don't care about wrong results for motor identification and sensor alignment routines | 2 个月前 | |
nsh: support watch command Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
examples/foc: ignore error for align and ident routines when motor controller disabled CONFIG_EXAMPLES_FOC_RUN_DISABLE option is used for tests and benchmarks, so we don't care about wrong results for motor identification and sensor alignment routines | 2 个月前 | |
nsh: support watch command Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
Minor typo fix Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
Merge remote-tracking branch 'remotes/mirtos/dev-upmerge-nuttx-10.2' into dev | 2 个月前 | |
nsh: support watch command Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
nsh: support watch command Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
nsh: support watch command Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
Minor typo fix Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 2 个月前 | |
examples/foc: improve perf monitor improve FOC perf monitor: - add options to choose when perf result should be printed - measure the controller thread call period | 2 个月前 | |
examples/foc: improve perf monitor improve FOC perf monitor: - add options to choose when perf result should be printed - measure the controller thread call period | 2 个月前 | |
nsh: support watch command Signed-off-by: yinshengkai <yinshengkai@xiaomi.com> | 2 个月前 | |
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); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 2 个月前 |