From 504e231ba210fa8e30b5e9e22f2576f8683c13de Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 5 Mar 2018 13:21:29 +1100 Subject: [PATCH] AP_AHRS: reverted UAVCAN PR 7827 --- libraries/AP_AHRS/AP_AHRS_NavEKF.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp index 411bf6f3c8..307304d877 100644 --- a/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp +++ b/libraries/AP_AHRS/AP_AHRS_NavEKF.cpp @@ -25,10 +25,6 @@ #include #include -#if HAL_WITH_UAVCAN -#include -#endif - #if AP_AHRS_NAVEKF_AVAILABLE extern const AP_HAL::HAL& hal; @@ -125,19 +121,6 @@ void AP_AHRS_NavEKF::update(bool skip_ins_update) // update optional alternative attitude view _view->update(skip_ins_update); } - -#if HAL_WITH_UAVCAN - if (hal.can_mgr != nullptr) { - for (uint8_t i = 0; i < MAX_NUMBER_OF_CAN_DRIVERS; i++) { - if (hal.can_mgr[i] != nullptr) { - AP_UAVCAN *ap_uavcan = hal.can_mgr[i]->get_UAVCAN(); - if (ap_uavcan != nullptr && ap_uavcan->need_AHRS_update()) { - ap_uavcan->UAVCAN_AHRS_update(*this); - } - } - } - } -#endif } void AP_AHRS_NavEKF::update_DCM(bool skip_ins_update)