AP_HAL_SITL: pass ADSB home location not string

This commit is contained in:
Peter Hall 2019-10-24 17:11:10 +01:00 committed by Andrew Tridgell
parent 3d8a5de1f0
commit 58d2c9669e
1 changed files with 1 additions and 1 deletions

View File

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