diff --git a/examples/foc/foc_cfg.h b/examples/foc/foc_cfg.h index 671d820d3..c9ef8dc1a 100644 --- a/examples/foc/foc_cfg.h +++ b/examples/foc/foc_cfg.h @@ -33,6 +33,11 @@ * Pre-processor Definitions ****************************************************************************/ +#if defined(CONFIG_EXAMPLES_FOC_SENSORLESS) && \ + defined(CONFIG_EXAMPLES_FOC_SENSORED) +# error Simultaneous support for sensorless and sensored mode not supported +#endif + /* For now only sensorless velocity control supported */ #ifdef CONFIG_EXAMPLES_FOC_SENSORLESS