Browse Source

AP_HAL_SITL: Add instance to ADSB simulation

gps-1.3.1
Stephen Dade 3 years ago committed by Peter Barker
parent
commit
1356beb14d
  1. 2
      libraries/AP_HAL_SITL/SITL_State.cpp

2
libraries/AP_HAL_SITL/SITL_State.cpp

@ -180,7 +180,7 @@ void SITL_State::_fdm_input_step(void) @@ -180,7 +180,7 @@ void SITL_State::_fdm_input_step(void)
if (_sitl->adsb_plane_count >= 0 &&
adsb == nullptr) {
adsb = new SITL::ADSB(_sitl->state, sitl_model->get_home());
adsb = new SITL::ADSB(_sitl->state, sitl_model->get_home(), get_instance());
} else if (_sitl->adsb_plane_count == -1 &&
adsb != nullptr) {
delete adsb;

Loading…
Cancel
Save