mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_SITL: pass ADSB home location not string
This commit is contained in:
parent
3d8a5de1f0
commit
58d2c9669e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue