mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-25 15:37:32 +00:00
examples/foc: raise error if both sensorless and sensored modes enabled
This commit is contained in:
parent
8a04e2b282
commit
87dcf877e7
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue