examples/foc: fix warning for sensored configurations

This commit is contained in:
raiden00pl 2023-11-07 17:57:28 +01:00 committed by Xiang Xiao
parent 87dcf877e7
commit f9a4ace59a

View File

@ -203,8 +203,10 @@
/* Open-loop to observer angle merge factor */
#if CONFIG_EXAMPLES_FOC_ANGOBS_MERGE_RATIO > 0
# define ANGLE_MERGE_FACTOR (CONFIG_EXAMPLES_FOC_ANGOBS_MERGE_RATIO / 100.0f)
#ifdef CONFIG_EXAMPLES_FOC_SENSORLESS
# if CONFIG_EXAMPLES_FOC_ANGOBS_MERGE_RATIO > 0
# define ANGLE_MERGE_FACTOR (CONFIG_EXAMPLES_FOC_ANGOBS_MERGE_RATIO / 100.0f)
# endif
#endif
/****************************************************************************