AP_HAL_SITL: track simulated ADSB vehicles relative to simulation origin

removes dependence on ArduPilot AHRS library

Also removes vehicles based off vehicle simulated position rather than distance-from-origin, so you always have company
This commit is contained in:
Peter Barker 2023-10-31 19:09:11 +11:00 committed by Peter Barker
parent 9087bb6b89
commit c953b4e512
2 changed files with 2 additions and 0 deletions

View File

@ -294,6 +294,7 @@ SimMCast::SimMCast(const char *frame_str) :
void SimMCast::update(const struct sitl_input &input)
{
multicast_read();
update_home();
update_external_payload(input);
auto *_sitl = AP::sitl();

View File

@ -346,6 +346,7 @@ void SITL_State::_fdm_input_local(void)
multicast_servo_update(input);
// update the model
sitl_model->update_home();
sitl_model->update_model(input);
// get FDM output from the model