mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
SRV_Channel: add method have_32_channels
Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
This commit is contained in:
parent
c983c856d0
commit
b5bbfe8011
@ -573,6 +573,15 @@ public:
|
||||
return channel_function(channel) == SRV_Channel::k_alarm_inverted;
|
||||
}
|
||||
|
||||
// return true if 32 channels are enabled
|
||||
static bool have_32_channels() {
|
||||
#if NUM_SERVO_CHANNELS >= 17
|
||||
return _singleton->enable_32_channels.get() > 0;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
static bool disabled_passthrough;
|
||||
|
Loading…
Reference in New Issue
Block a user