mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-11-04 09:13:05 +00:00 
			
		
		
		
	bugfix: Fixes RINEX V2.11 Nav. data record header
Fixes the number of spaces used by the second field in RINEX 2.11 when logging GLONASS Navigational information
This commit is contained in:
		@@ -2881,17 +2881,23 @@ void Rinex_Printer::log_rinex_nav(std::fstream& out, const std::map<int,Glonass_
 | 
				
			|||||||
                            line += minutes;
 | 
					                            line += minutes;
 | 
				
			||||||
                        }
 | 
					                        }
 | 
				
			||||||
                    line += std::string(1, ' ');
 | 
					                    line += std::string(1, ' ');
 | 
				
			||||||
                    if(boost::lexical_cast<int>(seconds) < 10)
 | 
										if(boost::lexical_cast<int>(seconds) < 10)
 | 
				
			||||||
                        {
 | 
											{
 | 
				
			||||||
                            line += std::string(1, ' ');
 | 
												line += std::string(1, ' ');
 | 
				
			||||||
                            line += std::string(seconds, 1, 1);
 | 
												line += std::string(seconds, 1, 1);
 | 
				
			||||||
                        }
 | 
											}
 | 
				
			||||||
                    else
 | 
										else
 | 
				
			||||||
                        {
 | 
											{
 | 
				
			||||||
                            line += seconds;
 | 
												line += seconds;
 | 
				
			||||||
                        }
 | 
											}
 | 
				
			||||||
 | 
										line += std::string(1, '.');
 | 
				
			||||||
                    line += std::string(1, ' ');
 | 
										std::string decimal = std::string("0");
 | 
				
			||||||
 | 
										if (timestring.size() > 16)
 | 
				
			||||||
 | 
											{
 | 
				
			||||||
 | 
												std::string decimal (timestring, 16, 1);
 | 
				
			||||||
 | 
											}
 | 
				
			||||||
 | 
										line += decimal;
 | 
				
			||||||
 | 
										line += std::string(1, ' ');
 | 
				
			||||||
                    line += Rinex_Printer::doub2for(-glonass_gnav_ephemeris_iter->second.d_tau_c, 18, 2);
 | 
					                    line += Rinex_Printer::doub2for(-glonass_gnav_ephemeris_iter->second.d_tau_c, 18, 2);
 | 
				
			||||||
                    line += std::string(1, ' ');
 | 
					                    line += std::string(1, ' ');
 | 
				
			||||||
                    line += Rinex_Printer::doub2for(glonass_gnav_ephemeris_iter->second.d_gamma_n, 18, 2);
 | 
					                    line += Rinex_Printer::doub2for(glonass_gnav_ephemeris_iter->second.d_gamma_n, 18, 2);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user