mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +00:00 
			
		
		
		
	bds: removal of unused fields
This commit is contained in:
		| @@ -54,6 +54,7 @@ | ||||
| #include "rtklib_solver.h" | ||||
| #include "Beidou_B1I.h" | ||||
| #include "Beidou_B3I.h" | ||||
| #include "Beidou_DNAV.h" | ||||
| #include "GLONASS_L1_L2_CA.h" | ||||
| #include "GPS_L1_CA.h" | ||||
| #include "Galileo_E1.h" | ||||
| @@ -730,7 +731,7 @@ bool Rtklib_Solver::get_PVT(const std::map<int, Gnss_Synchro> &gnss_observables_ | ||||
|                                         obsd_t newobs = {{0, 0}, '0', '0', {}, {}, {}, {}, {}, {}}; | ||||
|                                         obs_data[valid_obs + glo_valid_obs] = insert_obs_to_rtklib(newobs, | ||||
|                                             gnss_observables_iter->second, | ||||
|                                             beidou_ephemeris_iter->second.i_BEIDOU_week + 1356, | ||||
|                                             beidou_ephemeris_iter->second.i_BEIDOU_week + BEIDOU_DNAV_BDT2GPST_WEEK_NUM_OFFSET, | ||||
|                                             0); | ||||
|                                         valid_obs++; | ||||
|                                     } | ||||
| @@ -752,7 +753,7 @@ bool Rtklib_Solver::get_PVT(const std::map<int, Gnss_Synchro> &gnss_observables_ | ||||
|                                                     { | ||||
|                                                         obs_data[i + glo_valid_obs] = insert_obs_to_rtklib(obs_data[i + glo_valid_obs], | ||||
|                                                             gnss_observables_iter->second, | ||||
|                                                             beidou_ephemeris_iter->second.i_BEIDOU_week + 1356, | ||||
|                                                             beidou_ephemeris_iter->second.i_BEIDOU_week + BEIDOU_DNAV_BDT2GPST_WEEK_NUM_OFFSET, | ||||
|                                                             1);  // Band 3 (L2/G2/B3) | ||||
|                                                         found_B1I_obs = true; | ||||
|                                                         break; | ||||
| @@ -770,7 +771,7 @@ bool Rtklib_Solver::get_PVT(const std::map<int, Gnss_Synchro> &gnss_observables_ | ||||
|                                                     {}, {0.0, 0.0, 0.0}, {}}; | ||||
|                                                 obs_data[valid_obs + glo_valid_obs] = insert_obs_to_rtklib(newobs, | ||||
|                                                     gnss_observables_iter->second, | ||||
|                                                     beidou_ephemeris_iter->second.i_BEIDOU_week + 1356, | ||||
|                                                     beidou_ephemeris_iter->second.i_BEIDOU_week + BEIDOU_DNAV_BDT2GPST_WEEK_NUM_OFFSET, | ||||
|                                                     1);  // Band 2 (L2/G2) | ||||
|                                                 valid_obs++; | ||||
|                                             } | ||||
|   | ||||
| @@ -33,6 +33,7 @@ | ||||
|  | ||||
| #include "beidou_b1i_telemetry_decoder_gs.h" | ||||
| #include "Beidou_B1I.h" | ||||
| #include "Beidou_DNAV.h" | ||||
| #include "beidou_dnav_ephemeris.h" | ||||
| #include "beidou_dnav_iono.h" | ||||
| #include "beidou_dnav_utc_model.h" | ||||
| @@ -546,7 +547,7 @@ int beidou_b1i_telemetry_decoder_gs::general_work(int noutput_items __attribute_ | ||||
|         // update TOW at the preamble instant | ||||
|         { | ||||
|             // Reporting sow as gps time of week | ||||
|             d_TOW_at_Preamble_ms = static_cast<uint32_t>((d_nav.d_SOW + 14) * 1000.0); | ||||
|             d_TOW_at_Preamble_ms = static_cast<uint32_t>((d_nav.d_SOW + BEIDOU_DNAV_BDT2GPST_LEAP_SEC_OFFSET) * 1000.0); | ||||
|             d_TOW_at_current_symbol_ms = d_TOW_at_Preamble_ms + static_cast<uint32_t>((d_required_symbols + 1) * BEIDOU_B1I_CODE_PERIOD_MS); | ||||
|             flag_SOW_set = true; | ||||
|             d_nav.flag_new_SOW_available = false; | ||||
|   | ||||
| @@ -611,7 +611,7 @@ int beidou_b3i_telemetry_decoder_gs::general_work( | ||||
|         // update TOW at the preamble instant | ||||
|         { | ||||
|             // Reporting sow as gps time of week | ||||
|             d_TOW_at_Preamble_ms = static_cast<uint32_t>((d_nav.d_SOW + 14) * 1000.0); | ||||
|             d_TOW_at_Preamble_ms = static_cast<uint32_t>((d_nav.d_SOW + BEIDOU_DNAV_BDT2GPST_LEAP_SEC_OFFSET) * 1000.0); | ||||
|             d_TOW_at_current_symbol_ms = | ||||
|                 d_TOW_at_Preamble_ms + static_cast<uint32_t>((d_required_symbols + 1) * | ||||
|                                                              BEIDOU_B3I_CODE_PERIOD_MS); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Damian Miralles
					Damian Miralles