diff --git a/libraries/SITL/SIM_VectorNav.cpp b/libraries/SITL/SIM_VectorNav.cpp index 27c19be7f0f4f..2c7d54953c02a 100644 --- a/libraries/SITL/SIM_VectorNav.cpp +++ b/libraries/SITL/SIM_VectorNav.cpp @@ -29,7 +29,7 @@ VectorNav::VectorNav() : { } -struct PACKED VN_packet1 { +struct PACKED VN_INS_packet1 { float uncompMag[3]; float uncompAccel[3]; float uncompAngRate[3]; @@ -46,7 +46,7 @@ struct PACKED VN_packet1 { float velU; }; -struct PACKED VN_packet2 { +struct PACKED VN_INS_packet2 { uint64_t timeGPS; float temp; uint8_t numGPS1Sats; @@ -84,7 +84,7 @@ void VectorNav::send_packet1(void) { const auto &fdm = _sitl->state; - struct VN_packet1 pkt {}; + struct VN_INS_packet1 pkt {}; pkt.uncompAccel[0] = fdm.xAccel; pkt.uncompAccel[1] = fdm.yAccel; @@ -146,7 +146,7 @@ void VectorNav::send_packet2(void) { const auto &fdm = _sitl->state; - struct VN_packet2 pkt {}; + struct VN_INS_packet2 pkt {}; struct timeval tv; simulation_timeval(&tv);