Skip to content

Commit

Permalink
AP_ExternalAHRS: unify names in ILabs EAHRS handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Bugrov authored and peterbarker committed Sep 16, 2024
1 parent 4a1e4eb commit 2b3ee0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions libraries/AP_ExternalAHRS/AP_ExternalAHRS_InertialLabs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,13 @@ bool AP_ExternalAHRS_InertialLabs::check_uart()
switch (mtype) {
case MessageType::GPS_INS_TIME_MS: {
// this is the GPS tow timestamp in ms for when the IMU data was sampled
CHECK_SIZE(u.gps_time_ms);
gps_data.ms_tow = u.gps_time_ms;
CHECK_SIZE(u.gnss_time_ms);
gps_data.ms_tow = u.gnss_time_ms;
break;
}
case MessageType::GPS_WEEK: {
CHECK_SIZE(u.gps_week);
gps_data.gps_week = u.gps_week;
CHECK_SIZE(u.gnss_week);
gps_data.gps_week = u.gnss_week;
break;
}
case MessageType::ACCEL_DATA_HR: {
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_ExternalAHRS/AP_ExternalAHRS_InertialLabs.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ class AP_ExternalAHRS_InertialLabs : public AP_ExternalAHRS_backend {
};

union PACKED ILabsData {
uint32_t gps_time_ms; // ms since start of GPS week
uint16_t gps_week;
uint32_t gnss_time_ms; // ms since start of GNSS week
uint16_t gnss_week;
vec3_32_t accel_data_hr; // g * 1e6
vec3_32_t gyro_data_hr; // deg/s * 1e5
struct PACKED {
Expand Down

0 comments on commit 2b3ee0e

Please sign in to comment.