Skip to content

Commit

Permalink
AP_HAL_SITL: create and use ADSB sim when mxs simulator is in play
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Nov 2, 2023
1 parent 3edaea9 commit c06a759
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_HAL_SITL/SITL_State_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ SITL::SerialDevice *SITL_State_Common::create_serial_sim(const char *name, const
AP_HAL::panic("Only one sagetech_mxs at a time");
}
sagetech_mxs = new SITL::ADSB_Sagetech_MXS();
if (adsb == nullptr) {
adsb = new SITL::ADSB();
}
sitl_model->set_adsb(adsb);
return sagetech_mxs;
#endif
#if !defined(HAL_BUILD_AP_PERIPH)
Expand Down

0 comments on commit c06a759

Please sign in to comment.