examples/foc: fix setpoint scale for char interface

This commit is contained in:
raiden00pl 2023-10-10 13:16:33 +02:00 committed by Xiang Xiao
parent 4c4976a4e9
commit 969607ac44

View File

@ -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 */