mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-14 06:30:45 +00:00
examples/foc: fix setpoint scale for char interface
This commit is contained in:
parent
4c4976a4e9
commit
969607ac44
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@
|
|||
/* CHARCTRL setpoint control */
|
||||
|
||||
#ifdef CONFIG_EXAMPLES_FOC_SETPOINT_CHAR
|
||||
# define SETPOINT_ADC_SCALE (1 / 1000.0f)
|
||||
# define SETPOINT_ADC_SCALE (1.0f / (CONFIG_EXAMPLES_FOC_SETPOINT_MAX / 1000.0f))
|
||||
#endif
|
||||
|
||||
/* VBUS source must be specified */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue