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 &&
|
if (_sitl->adsb_plane_count >= 0 &&
|
||||||
adsb == nullptr) {
|
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 &&
|
} else if (_sitl->adsb_plane_count == -1 &&
|
||||||
adsb != nullptr) {
|
adsb != nullptr) {
|
||||||
delete adsb;
|
delete adsb;
|
||||||
|
|
Loading…
Reference in New Issue