From 08782a208523e872d23baee189575b6417dda951 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sat, 19 Mar 2022 10:59:44 +0100 Subject: [PATCH] Remove unused variables --- .../system_parameters/gps_navigation_message.cc | 12 ------------ .../system_parameters/gps_navigation_message.h | 16 ---------------- 2 files changed, 28 deletions(-) diff --git a/src/core/system_parameters/gps_navigation_message.cc b/src/core/system_parameters/gps_navigation_message.cc index e7c39e71a..1ea1a6f22 100644 --- a/src/core/system_parameters/gps_navigation_message.cc +++ b/src/core/system_parameters/gps_navigation_message.cc @@ -465,18 +465,6 @@ Gps_Ephemeris Gps_Navigation_Message::get_ephemeris() const ephemeris.alert_flag = b_alert_flag; ephemeris.antispoofing_flag = b_antispoofing_flag; - // These parameters are empty; can be computed later with - // ephemeris.sv_clock_drift(double transmitTime); - // ephemeris.satellitePosition(double transmitTime); - ephemeris.satClkDrift = d_satClkDrift; - ephemeris.dtr = d_dtr; - ephemeris.satpos_X = d_satpos_X; - ephemeris.satpos_Y = d_satpos_Y; - ephemeris.satpos_Z = d_satpos_Z; - ephemeris.satvel_X = d_satvel_X; - ephemeris.satvel_Y = d_satvel_Y; - ephemeris.satvel_Z = d_satvel_Z; - return ephemeris; } diff --git a/src/core/system_parameters/gps_navigation_message.h b/src/core/system_parameters/gps_navigation_message.h index efe18144e..1d239a8fa 100644 --- a/src/core/system_parameters/gps_navigation_message.h +++ b/src/core/system_parameters/gps_navigation_message.h @@ -195,22 +195,6 @@ private: int32_t i_Toa{}; // Almanac reference time [s] int32_t i_WN_A{}; // Modulo 256 of the GPS week number to which the almanac reference time (i_Toa) is referenced - // clock terms - // double d_master_clock{}; // GPS transmission time - - double d_dtr{}; // relativistic clock correction term - double d_satClkDrift{}; - - // satellite positions - double d_satpos_X{}; // Earth-fixed coordinate x of the satellite [m]. Intersection of the IERS Reference Meridian (IRM) and the plane passing through the origin and normal to the Z-axis. - double d_satpos_Y{}; // Earth-fixed coordinate y of the satellite [m]. Completes a right-handed, Earth-Centered, Earth-Fixed orthogonal coordinate system. - double d_satpos_Z{}; // Earth-fixed coordinate z of the satellite [m]. The direction of the IERS (International Earth Rotation and Reference Systems Service) Reference Pole (IRP). - - // Satellite velocity - double d_satvel_X{}; // Earth-fixed velocity coordinate x of the satellite [m] - double d_satvel_Y{}; // Earth-fixed velocity coordinate y of the satellite [m] - double d_satvel_Z{}; // Earth-fixed velocity coordinate z of the satellite [m] - // satellite identification info int32_t i_channel_ID{}; uint32_t i_satellite_PRN{};