1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-31 03:14:56 +00:00

clang-formt

Signed-off-by: joebre <joel.brenner@saphyrion.ch>
This commit is contained in:
joebre 2025-01-21 15:50:01 +01:00 committed by Carles Fernandez
parent acae99cb5c
commit 4b2e5661cf
3 changed files with 34 additions and 35 deletions

View File

@ -206,26 +206,26 @@ int32_t Gps_Navigation_Message::subframe_decoder(const char* subframe)
a_M_0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_MZERO));
a_M_0 = a_M_0 * ALM_MZERO_LSB;
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 = 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 = a_OMEGA_0 * ALM_OMEGAZERO_LSB;
a_omega = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGA));
a_omega = a_omega * ALM_OMEGA_LSB;
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 = a_delta_i * ALM_DELTAI_LSB;
a_af0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_AF0));
a_af0 = a_af0 * ALM_AF0_LSB;
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;
i_Toa = static_cast<int32_t>(read_navigation_unsigned(subframe_bits, ALM_TOA));
i_Toa = i_Toa * ALM_TOA_LSB;
flag_almanac_valid = true ;
flag_almanac_valid = true;
}
}
@ -305,27 +305,26 @@ int32_t Gps_Navigation_Message::subframe_decoder(const char* subframe)
a_M_0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_MZERO));
a_M_0 = a_M_0 * ALM_MZERO_LSB;
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 = 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 = a_OMEGA_0 * ALM_OMEGAZERO_LSB;
a_omega = static_cast<double>(read_navigation_signed(subframe_bits, ALM_OMEGA));
a_omega = a_omega * ALM_OMEGA_LSB;
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 = a_delta_i * ALM_DELTAI_LSB;
a_af0 = static_cast<double>(read_navigation_signed(subframe_bits, ALM_AF0));
a_af0 = a_af0 * ALM_AF0_LSB;
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;
i_Toa = static_cast<int32_t>(read_navigation_unsigned(subframe_bits, ALM_TOA));
i_Toa = i_Toa * ALM_TOA_LSB;
SV_Health = static_cast<int32_t>(read_navigation_unsigned(subframe_bits, ALM_SVHEALTH));
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)

View File

@ -21,8 +21,8 @@
#include "GPS_L1_CA.h"
#include "gps_ephemeris.h"
#include "gps_almanac.h"
#include "gps_ephemeris.h"
#include "gps_iono.h"
#include "gps_utc_model.h"
#include <bitset>