18#ifndef GNSS_SDR_GPS_L2C_H
19#define GNSS_SDR_GPS_L2C_H
46constexpr int32_t GPS_L2_SYMBOLS_PER_BIT = 2;
47constexpr int32_t GPS_L2_SAMPLES_PER_SYMBOL = 1;
48constexpr int32_t GPS_L2_CNAV_DATA_PAGE_SYMBOLS = 600;
49constexpr int32_t GPS_L2_CNAV_DATA_PAGE_DURATION_S = 12;
51constexpr int32_t GPS_L2C_HISTORY_DEEP = 5;
56constexpr int32_t GPS_L2C_M_INIT_REG[115] =
57 {0742417664, 0756014035, 0002747144, 0066265724,
58 0601403471, 0703232733, 0124510070, 0617316361,
59 0047541621, 0733031046, 0713512145, 0024437606,
60 0021264003, 0230655351, 0001314400, 0222021506,
61 0540264026, 0205521705, 0064022144, 0120161274,
62 0044023533, 0724744327, 0045743577, 0741201660,
63 0700274134, 0010247261, 0713433445, 0737324162,
64 0311627434, 0710452007, 0722462133, 0050172213,
65 0500653703, 0755077436, 0136717361, 0756675453,
66 0435506112, 0771353753, 0226107701, 0022025110,
67 0402466344, 0752566114, 0702011164, 0041216771,
68 0047457275, 0266333164, 0713167356, 0060546335,
69 0355173035, 0617201036, 0157465571, 0767360553,
70 0023127030, 0431343777, 0747317317, 0045706125,
71 0002744276, 0060036467, 0217744147, 0603340174,
72 0326616775, 0063240065, 0111460621,
73 0604055104, 0157065232, 0013305707, 0603552017,
74 0230461355, 0603653437, 0652346475, 0743107103,
75 0401521277, 0167335110, 0014013575, 0362051132,
76 0617753265, 0216363634, 0755561123, 0365304033,
77 0625025543, 0054420334, 0415473671, 0662364360,
78 0373446602, 0417564100, 0000526452, 0226631300,
79 0113752074, 0706134401, 0041352546, 0664630154,
80 0276524255, 0714720530, 0714051771, 0044526647,
81 0207164322, 0262120161, 0204244652, 0202133131,
82 0714351204, 0657127260, 0130567507, 0670517677,
83 0607275514, 0045413633, 0212645405, 0613700455,
84 0706202440, 0705056276, 0020373522, 0746013617,
85 0132720621, 0434015513, 0566721727, 0140633660};
Defines parameters for GPS CNAV.
constexpr double GPS_L2_M_CODE_RATE_L_ZEROED_CPS
GPS L2 M code rate with L2 M Zeroed [chips/s].
constexpr double GPS_L2_M_PERIOD_S
GPS L2 M code period [seconds].
constexpr uint32_t GPS_L2C_OPT_ACQ_FS_SPS
Sampling frequency that maximizes the acquisition SNR while using a non-multiple of chip rate.
constexpr double GPS_L2_L_PERIOD_S
GPS L2 L code period [seconds].
constexpr int32_t GPS_L2_M_CODE_LENGTH_CHIPS
GPS L2 M code length [chips].
constexpr int32_t GPS_L2_CNAV_DATA_PAGE_BITS
GPS L2 CNAV page length, including preamble and CRC [bits].
constexpr double GPS_L2_M_CODE_RATE_CPS
GPS L2 M code rate [chips/s].
constexpr double GPS_L2_FREQ_HZ
L2 [Hz].
constexpr double FREQ2
L2 frequency (Hz).
constexpr int32_t GPS_L2_L_CODE_LENGTH_CHIPS
GPS L2 L code length [chips].
constexpr double GPS_L2_L_CODE_RATE_CPS
GPS L2 L code rate [chips/s].
constexpr uint32_t GPS_L2_M_CODE_PERIOD_MS
GPS L2 L code period [ms].
constexpr int32_t GPS_L2_M_CODE_LENGTH_CHIPS_L_ZEROED
GPS L2 M code length with L2 CL zeroed [chips].