AP_HAL: add get_output_mode() and HAL_WITH_IO_MCU_DSHOT

This commit is contained in:
Andy Piper 2023-06-21 22:42:25 +01:00 committed by Andrew Tridgell
parent 83fddd0d61
commit c631b79dde
2 changed files with 10 additions and 0 deletions

View File

@ -169,6 +169,10 @@
#define HAL_WITH_IO_MCU 0
#endif
#ifndef HAL_WITH_IO_MCU_DSHOT
#define HAL_WITH_IO_MCU_DSHOT 0
#endif
// 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
// FMUv2 going for as long as possible

View File

@ -274,6 +274,12 @@ public:
virtual void set_output_mode(uint32_t mask, enum output_mode mode) {}
virtual enum output_mode get_output_mode(uint32_t& mask) {
mask = 0;
return MODE_PWM_NORMAL;
}
/*
* get output mode banner to inform user of how outputs are configured
*/