From 031115577a0bd4dedf41b2d7118af7d211840820 Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Tue, 12 Jan 2021 02:02:11 +0000 Subject: [PATCH] AP_HAL_SITL: enable 32 servo outs --- libraries/AP_HAL_SITL/RCOutput.cpp | 2 +- libraries/AP_HAL_SITL/RCOutput.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_HAL_SITL/RCOutput.cpp b/libraries/AP_HAL_SITL/RCOutput.cpp index 616d6a27c0..6bbe40f30c 100644 --- a/libraries/AP_HAL_SITL/RCOutput.cpp +++ b/libraries/AP_HAL_SITL/RCOutput.cpp @@ -106,7 +106,7 @@ void RCOutput::push(void) /* Serial LED emulation */ -bool RCOutput::set_serial_led_num_LEDs(const uint16_t chan, uint8_t num_leds, output_mode mode, uint16_t clock_mask) +bool RCOutput::set_serial_led_num_LEDs(const uint16_t chan, uint8_t num_leds, output_mode mode, uint32_t clock_mask) { if (chan > 15 || num_leds > 64) { return false; diff --git a/libraries/AP_HAL_SITL/RCOutput.h b/libraries/AP_HAL_SITL/RCOutput.h index 3472b7c49e..12c79a3da2 100644 --- a/libraries/AP_HAL_SITL/RCOutput.h +++ b/libraries/AP_HAL_SITL/RCOutput.h @@ -31,7 +31,7 @@ public: /* Serial LED emulation */ - bool set_serial_led_num_LEDs(const uint16_t chan, uint8_t num_leds, output_mode mode = MODE_PWM_NONE, uint16_t clock_mask = 0) override; + bool set_serial_led_num_LEDs(const uint16_t chan, uint8_t num_leds, output_mode mode = MODE_PWM_NONE, uint32_t clock_mask = 0) override; void set_serial_led_rgb_data(const uint16_t chan, int8_t led, uint8_t red, uint8_t green, uint8_t blue) override; void serial_led_send(const uint16_t chan) override; @@ -40,7 +40,7 @@ private: AP_ESC_Telem_SITL *esc_telem; uint16_t _freq_hz; - uint16_t _enable_mask; + uint32_t _enable_mask; bool _corked; uint16_t _pending[SITL_NUM_CHANNELS]; };