mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
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:
parent
9087bb6b89
commit
c953b4e512
@ -294,6 +294,7 @@ SimMCast::SimMCast(const char *frame_str) :
|
|||||||
void SimMCast::update(const struct sitl_input &input)
|
void SimMCast::update(const struct sitl_input &input)
|
||||||
{
|
{
|
||||||
multicast_read();
|
multicast_read();
|
||||||
|
update_home();
|
||||||
update_external_payload(input);
|
update_external_payload(input);
|
||||||
|
|
||||||
auto *_sitl = AP::sitl();
|
auto *_sitl = AP::sitl();
|
||||||
|
@ -346,6 +346,7 @@ void SITL_State::_fdm_input_local(void)
|
|||||||
multicast_servo_update(input);
|
multicast_servo_update(input);
|
||||||
|
|
||||||
// update the model
|
// update the model
|
||||||
|
sitl_model->update_home();
|
||||||
sitl_model->update_model(input);
|
sitl_model->update_model(input);
|
||||||
|
|
||||||
// get FDM output from the model
|
// get FDM output from the model
|
||||||
|
Loading…
Reference in New Issue
Block a user