mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AP_AHRS: Use SITL singleton
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
a0b4553a26
commit
819f08b7f7
@ -291,7 +291,7 @@ void AP_AHRS_NavEKF::update_EKF3(void)
|
||||
void AP_AHRS_NavEKF::update_SITL(void)
|
||||
{
|
||||
if (_sitl == nullptr) {
|
||||
_sitl = (SITL::SITL *)AP_Param::find_object("SIM_");
|
||||
_sitl = AP::sitl();
|
||||
if (_sitl == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user