mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 11:19:18 +00:00
clang-formt
Signed-off-by: joebre <joel.brenner@saphyrion.ch>
This commit is contained in:
parent
acae99cb5c
commit
4b2e5661cf
@ -203,29 +203,29 @@ int32_t Gps_Navigation_Message::subframe_decoder(const char* subframe)
|
|||||||
{
|
{
|
||||||
if (SV_data_ID != 0)
|
if (SV_data_ID != 0)
|
||||||
{
|
{
|
||||||
a_M_0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_MZERO));
|
a_M_0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_MZERO));
|
||||||
a_M_0 = a_M_0 * ALM_MZERO_LSB;
|
a_M_0 = a_M_0 * ALM_MZERO_LSB;
|
||||||
a_ecc = static_cast<double>(read_navigation_unsigned(subframe_bits, ALM_ECC));
|
a_ecc = static_cast<double>(read_navigation_unsigned(subframe_bits, ALM_ECC));
|
||||||
a_ecc = a_ecc *ALM_ECC_LSB;
|
a_ecc = a_ecc * ALM_ECC_LSB;
|
||||||
a_sqrtA = static_cast<double>(read_navigation_unsigned(subframe_bits, ALM_SQUAREA));
|
a_sqrtA = static_cast<double>(read_navigation_unsigned(subframe_bits, ALM_SQUAREA));
|
||||||
a_sqrtA = a_sqrtA *ALM_SQUAREA_LSB;
|
a_sqrtA = a_sqrtA * ALM_SQUAREA_LSB;
|
||||||
a_OMEGA_0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGAZERO));
|
a_OMEGA_0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGAZERO));
|
||||||
a_OMEGA_0 = a_OMEGA_0 * ALM_OMEGAZERO_LSB;
|
a_OMEGA_0 = a_OMEGA_0 * ALM_OMEGAZERO_LSB;
|
||||||
a_omega = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGA));
|
a_omega = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGA));
|
||||||
a_omega = a_omega * ALM_OMEGA_LSB;
|
a_omega = a_omega * ALM_OMEGA_LSB;
|
||||||
a_OMEGAdot = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGADOT));
|
a_OMEGAdot = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGADOT));
|
||||||
a_OMEGAdot = a_OMEGAdot *ALM_OMEGADOT_LSB;
|
a_OMEGAdot = a_OMEGAdot * ALM_OMEGADOT_LSB;
|
||||||
a_delta_i = static_cast<double>(read_navigation_signed(subframe_bits, ALM_DELTAI));
|
a_delta_i = static_cast<double>(read_navigation_signed(subframe_bits, ALM_DELTAI));
|
||||||
a_delta_i = a_delta_i * ALM_DELTAI_LSB;
|
a_delta_i = a_delta_i * ALM_DELTAI_LSB;
|
||||||
a_af0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_AF0));
|
a_af0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_AF0));
|
||||||
a_af0 = a_af0 * ALM_AF0_LSB;
|
a_af0 = a_af0 * ALM_AF0_LSB;
|
||||||
a_af1 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_AF1));
|
a_af1 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_AF1));
|
||||||
a_af1 = a_af1* ALM_AF1_LSB;
|
a_af1 = a_af1 * ALM_AF1_LSB;
|
||||||
a_PRN = SV_page;
|
a_PRN = SV_page;
|
||||||
i_Toa = static_cast<int32_t>(read_navigation_unsigned(subframe_bits, ALM_TOA));
|
i_Toa = static_cast<int32_t>(read_navigation_unsigned(subframe_bits, ALM_TOA));
|
||||||
i_Toa = i_Toa * ALM_TOA_LSB;
|
i_Toa = i_Toa * ALM_TOA_LSB;
|
||||||
|
|
||||||
flag_almanac_valid = true ;
|
flag_almanac_valid = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -302,30 +302,29 @@ int32_t Gps_Navigation_Message::subframe_decoder(const char* subframe)
|
|||||||
{
|
{
|
||||||
if (SV_data_ID_5 != 0)
|
if (SV_data_ID_5 != 0)
|
||||||
{
|
{
|
||||||
a_M_0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_MZERO));
|
a_M_0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_MZERO));
|
||||||
a_M_0 = a_M_0 * ALM_MZERO_LSB;
|
a_M_0 = a_M_0 * ALM_MZERO_LSB;
|
||||||
a_ecc = static_cast<double>(read_navigation_unsigned(subframe_bits, ALM_ECC));
|
a_ecc = static_cast<double>(read_navigation_unsigned(subframe_bits, ALM_ECC));
|
||||||
a_ecc = a_ecc *ALM_ECC_LSB;
|
a_ecc = a_ecc * ALM_ECC_LSB;
|
||||||
a_sqrtA = static_cast<double>(read_navigation_unsigned(subframe_bits, ALM_SQUAREA));
|
a_sqrtA = static_cast<double>(read_navigation_unsigned(subframe_bits, ALM_SQUAREA));
|
||||||
a_sqrtA = a_sqrtA *ALM_SQUAREA_LSB;
|
a_sqrtA = a_sqrtA * ALM_SQUAREA_LSB;
|
||||||
a_OMEGA_0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGAZERO));
|
a_OMEGA_0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGAZERO));
|
||||||
a_OMEGA_0 = a_OMEGA_0 * ALM_OMEGAZERO_LSB;
|
a_OMEGA_0 = a_OMEGA_0 * ALM_OMEGAZERO_LSB;
|
||||||
a_omega = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGA));
|
a_omega = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGA));
|
||||||
a_omega = a_omega * ALM_OMEGA_LSB;
|
a_omega = a_omega * ALM_OMEGA_LSB;
|
||||||
a_OMEGAdot = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGADOT));
|
a_OMEGAdot = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGADOT));
|
||||||
a_OMEGAdot = a_OMEGAdot *ALM_OMEGADOT_LSB;
|
a_OMEGAdot = a_OMEGAdot * ALM_OMEGADOT_LSB;
|
||||||
a_delta_i = static_cast<double>(read_navigation_signed(subframe_bits, ALM_DELTAI));
|
a_delta_i = static_cast<double>(read_navigation_signed(subframe_bits, ALM_DELTAI));
|
||||||
a_delta_i = a_delta_i * ALM_DELTAI_LSB;
|
a_delta_i = a_delta_i * ALM_DELTAI_LSB;
|
||||||
a_af0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_AF0));
|
a_af0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_AF0));
|
||||||
a_af0 = a_af0 * ALM_AF0_LSB;
|
a_af0 = a_af0 * ALM_AF0_LSB;
|
||||||
a_af1 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_AF1));
|
a_af1 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_AF1));
|
||||||
a_af1 = a_af1* ALM_AF1_LSB;
|
a_af1 = a_af1 * ALM_AF1_LSB;
|
||||||
a_PRN = SV_page_5;
|
a_PRN = SV_page_5;
|
||||||
i_Toa = static_cast<int32_t>(read_navigation_unsigned(subframe_bits, ALM_TOA));
|
i_Toa = static_cast<int32_t>(read_navigation_unsigned(subframe_bits, ALM_TOA));
|
||||||
i_Toa = i_Toa * ALM_TOA_LSB;
|
i_Toa = i_Toa * ALM_TOA_LSB;
|
||||||
SV_Health = static_cast<int32_t>(read_navigation_unsigned(subframe_bits, ALM_SVHEALTH));
|
SV_Health = static_cast<int32_t>(read_navigation_unsigned(subframe_bits, ALM_SVHEALTH));
|
||||||
flag_almanac_valid = true;
|
flag_almanac_valid = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (SV_page_5 == 51) // Page 25 (from Table 20-V. Data IDs and SV IDs in Subframes 4 and 5, IS-GPS-200M)
|
if (SV_page_5 == 51) // Page 25 (from Table 20-V. Data IDs and SV IDs in Subframes 4 and 5, IS-GPS-200M)
|
||||||
|
@ -21,8 +21,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "GPS_L1_CA.h"
|
#include "GPS_L1_CA.h"
|
||||||
#include "gps_ephemeris.h"
|
|
||||||
#include "gps_almanac.h"
|
#include "gps_almanac.h"
|
||||||
|
#include "gps_ephemeris.h"
|
||||||
#include "gps_iono.h"
|
#include "gps_iono.h"
|
||||||
#include "gps_utc_model.h"
|
#include "gps_utc_model.h"
|
||||||
#include <bitset>
|
#include <bitset>
|
||||||
@ -199,8 +199,8 @@ private:
|
|||||||
double d_A_f2{}; // Coefficient 2 of code phase offset model [s/s^2]
|
double d_A_f2{}; // Coefficient 2 of code phase offset model [s/s^2]
|
||||||
|
|
||||||
// Almanac
|
// Almanac
|
||||||
int32_t i_Toa{}; // Almanac reference time [s]
|
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
|
int32_t i_WN_A{}; // Modulo 256 of the GPS week number to which the almanac reference time (i_Toa) is referenced
|
||||||
int32_t SV_Health{}; // Almanac SV healt
|
int32_t SV_Health{}; // Almanac SV healt
|
||||||
uint32_t a_PRN; // Almanac PRN
|
uint32_t a_PRN; // Almanac PRN
|
||||||
double a_delta_i{}; // Inclination Angle at Reference Time (relative to i_0 = 0.30 semi-circles)
|
double a_delta_i{}; // Inclination Angle at Reference Time (relative to i_0 = 0.30 semi-circles)
|
||||||
|
Loading…
Reference in New Issue
Block a user