mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_BoardConfig: added get_pwm_count()
This commit is contained in:
parent
26d6947bf6
commit
60b1eab06d
@ -103,6 +103,15 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
// get number of PWM outputs enabled on FMU
|
||||
static uint8_t get_pwm_count(void) {
|
||||
#if AP_FEATURE_BOARD_DETECT
|
||||
return instance?instance->state.pwm_count.get():4;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
private:
|
||||
static AP_BoardConfig *instance;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user