From 940b6fd1fb84c5033343433b812f0e4b069680e8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 1 Jun 2022 21:16:42 +1000 Subject: [PATCH] AP_HAL_SITL: new Loweheiser generator/efi sim --- libraries/AP_HAL/SIMState.h | 1 + libraries/AP_HAL_SITL/SITL_State_common.cpp | 5 +++++ libraries/AP_HAL_SITL/SITL_State_common.h | 1 + 3 files changed, 7 insertions(+) diff --git a/libraries/AP_HAL/SIMState.h b/libraries/AP_HAL/SIMState.h index 50589eb85a..0e1d2c808d 100644 --- a/libraries/AP_HAL/SIMState.h +++ b/libraries/AP_HAL/SIMState.h @@ -43,6 +43,7 @@ #include #include +#include #include #include diff --git a/libraries/AP_HAL_SITL/SITL_State_common.cpp b/libraries/AP_HAL_SITL/SITL_State_common.cpp index ae2603e6dd..b4f96e4cf4 100644 --- a/libraries/AP_HAL_SITL/SITL_State_common.cpp +++ b/libraries/AP_HAL_SITL/SITL_State_common.cpp @@ -222,6 +222,11 @@ SITL::SerialDevice *SITL_State_Common::create_serial_sim(const char *name, const sitl_model->set_adsb(adsb); return sagetech_mxs; #endif +#if AP_SIM_LOWEHEISER_ENABLED + } else if (streq(name, "loweheiser")) { + sitl_model->set_loweheiser(&_sitl->loweheiser_sim); + return &_sitl->loweheiser_sim; +#endif #if !defined(HAL_BUILD_AP_PERIPH) } else if (streq(name, "richenpower")) { sitl_model->set_richenpower(&_sitl->richenpower_sim); diff --git a/libraries/AP_HAL_SITL/SITL_State_common.h b/libraries/AP_HAL_SITL/SITL_State_common.h index 4b59268ef8..82c281e305 100644 --- a/libraries/AP_HAL_SITL/SITL_State_common.h +++ b/libraries/AP_HAL_SITL/SITL_State_common.h @@ -49,6 +49,7 @@ #include #include +#include #include #include "AP_HAL_SITL.h"