#include "SIM_config.h" #if AP_SIM_GPIO_LED_RGB_ENABLED #include "SIM_GPIO_LED_RGB.h" #include using namespace SITL; void GPIO_LED_RGB::init() { leds.init(); rgbled.init(); } void GPIO_LED_RGB::update(const class Aircraft &aircraft) { if (!init_done) { init(); init_done = true; } const uint16_t pin_mask = AP::sitl()->pin_mask.get(); const bool red = ((pin_mask & uint16_t((1U<