Skip to content

Commit

Permalink
AP_ExternalAHRS_VectorNav: Address review comments
Browse files Browse the repository at this point in the history
Remove unnecessary header, switch parameters to default initialization
  • Loading branch information
lashVN committed Jul 19, 2024
1 parent f733110 commit 5859fa4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
support for serial connected AHRS systems
*/

#include <cstdint>
#define ALLOW_DOUBLE_MATH_FUNCTIONS

#include "AP_ExternalAHRS_config.h"
Expand Down
12 changes: 6 additions & 6 deletions libraries/AP_ExternalAHRS/AP_ExternalAHRS_VectorNav.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5859fa4

Please sign in to comment.