mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_HAL: add support for Extended DShot Telemetry v2
This commit is contained in:
parent
43937ddeed
commit
1232e810d4
@ -175,6 +175,19 @@
|
|||||||
#define HAL_WITH_IO_MCU_DSHOT HAL_WITH_IO_MCU_BIDIR_DSHOT
|
#define HAL_WITH_IO_MCU_DSHOT HAL_WITH_IO_MCU_BIDIR_DSHOT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAL_REQUIRES_BDSHOT_SUPPORT
|
||||||
|
#define HAL_REQUIRES_BDSHOT_SUPPORT (defined(HAL_WITH_BIDIR_DSHOT) || HAL_WITH_IO_MCU_BIDIR_DSHOT)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// support for Extended DShot Telemetry v2 is enabled only if any kind of such telemetry
|
||||||
|
// can in principle arrive, either from servo outputs or from IOMCU
|
||||||
|
|
||||||
|
// if not desired, set to 0 - and if IOMCU has bidirectional DShot enabled, recompile it too,
|
||||||
|
// otherwise the communication to IOMCU breaks!
|
||||||
|
#ifndef AP_EXTENDED_DSHOT_TELEM_V2_ENABLED
|
||||||
|
#define AP_EXTENDED_DSHOT_TELEM_V2_ENABLED HAL_REQUIRES_BDSHOT_SUPPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
// this is used as a general mechanism to make a 'small' build by
|
// this is used as a general mechanism to make a 'small' build by
|
||||||
// dropping little used features. We use this to allow us to keep
|
// dropping little used features. We use this to allow us to keep
|
||||||
// FMUv2 going for as long as possible
|
// FMUv2 going for as long as possible
|
||||||
|
Loading…
Reference in New Issue
Block a user