AP_AHRS: call external AHRS update

This commit is contained in:
Andrew Tridgell 2021-01-01 20:21:37 +11:00 committed by Peter Barker
parent b5b9b57c9e
commit 4e33b74d69
1 changed files with 2 additions and 0 deletions

View File

@ -427,6 +427,8 @@ void AP_AHRS_NavEKF::update_SITL(void)
#if HAL_EXTERNAL_AHRS_ENABLED
void AP_AHRS_NavEKF::update_external(void)
{
AP::externalAHRS().update();
if (active_EKF_type() == EKFType::EXTERNAL) {
Quaternion quat;
if (!AP::externalAHRS().get_quaternion(quat)) {