From 3b15ff0d42b8beabf2814233aae60b41a17aa739 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 20 Jul 2021 22:16:23 +1000 Subject: [PATCH] Rover: remove ability to use DCM as AHRS --- Rover/Log.cpp | 3 +-- Rover/Parameters.cpp | 2 -- Rover/Rover.h | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Rover/Log.cpp b/Rover/Log.cpp index 9ffd3bbaa3..be11e8b4c8 100644 --- a/Rover/Log.cpp +++ b/Rover/Log.cpp @@ -12,10 +12,9 @@ void Rover::Log_Write_Attitude() ahrs.Write_Attitude(targets); -#if AP_AHRS_NAVEKF_AVAILABLE AP::ahrs_navekf().Log_Write(); ahrs.Write_AHRS2(); -#endif + ahrs.Write_POS(); // log steering rate controller diff --git a/Rover/Parameters.cpp b/Rover/Parameters.cpp index 4d29c5fcc3..d511153637 100644 --- a/Rover/Parameters.cpp +++ b/Rover/Parameters.cpp @@ -343,7 +343,6 @@ const AP_Param::Info Rover::var_info[] = { // @Path: ../libraries/AP_GPS/AP_GPS.cpp GOBJECT(gps, "GPS", AP_GPS), -#if AP_AHRS_NAVEKF_AVAILABLE #if HAL_NAVEKF2_AVAILABLE // @Group: EK2_ // @Path: ../libraries/AP_NavEKF2/AP_NavEKF2.cpp @@ -354,7 +353,6 @@ const AP_Param::Info Rover::var_info[] = { // @Group: EK3_ // @Path: ../libraries/AP_NavEKF3/AP_NavEKF3.cpp GOBJECTN(ahrs.EKF3, NavEKF3, "EK3_", NavEKF3), -#endif #endif // @Group: RPM diff --git a/Rover/Rover.h b/Rover/Rover.h index d39d8dd25b..3909074d08 100644 --- a/Rover/Rover.h +++ b/Rover/Rover.h @@ -162,9 +162,7 @@ private: AP_L1_Control L1_controller{ahrs, nullptr}; -#if AP_AHRS_NAVEKF_AVAILABLE OpticalFlow optflow; -#endif #if OSD_ENABLED || OSD_PARAM_ENABLED AP_OSD osd;