diff --git a/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp b/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp index 3e58710799d031..38f44ed1501118 100644 --- a/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp +++ b/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp @@ -16,7 +16,6 @@ support for serial connected AHRS systems */ -#include #define ALLOW_DOUBLE_MATH_FUNCTIONS #include "AP_ExternalAHRS_config.h" diff --git a/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.h b/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.h index 456090d205f00a..9c1639640a1e00 100644 --- a/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.h +++ b/libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.h @@ -73,13 +73,13 @@ class AP_ExternalAHRS_VectorNav : public AP_ExternalAHRS_backend { uint16_t pktoffset; uint16_t bufsize; - struct VN_imu_packet *latest_imu_packet = nullptr; - struct VN_INS_ekf_packet *latest_ins_ekf_packet = nullptr; - struct VN_INS_gnss_packet *latest_ins_gnss_packet = nullptr; + struct VN_imu_packet *latest_imu_packet; + struct VN_INS_ekf_packet *latest_ins_ekf_packet; + struct VN_INS_gnss_packet *latest_ins_gnss_packet; - uint32_t last_pkt1_ms = UINT32_MAX; - uint32_t last_pkt2_ms = UINT32_MAX; - uint32_t last_pkt3_ms = UINT32_MAX; + uint32_t last_pkt1_ms; + uint32_t last_pkt2_ms; + uint32_t last_pkt3_ms; enum class TYPE { VN_INS, // Full INS mode, requiring GNSS. Used by VN-2X0 and VN-3X0