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"