From ae289052e9313a6ed74748d58d9ae6a7c3b8273b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 30 Oct 2019 21:11:52 +1100 Subject: [PATCH] SITL: added LED state --- libraries/SITL/SITL.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libraries/SITL/SITL.h b/libraries/SITL/SITL.h index 59631dc01f..7552ad33ec 100644 --- a/libraries/SITL/SITL.h +++ b/libraries/SITL/SITL.h @@ -302,6 +302,15 @@ public: Buzzer buzzer_sim; ToneAlarm tonealarm_sim; SIM_Precland precland_sim; + + struct { + // LED state, for serial LED emulation + struct { + uint8_t rgb[3]; + } rgb[16][32]; + uint8_t num_leds[16]; + uint32_t send_counter; + } led; }; } // namespace SITL