mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-12 19:20:32 +00:00
fixing interface
This commit is contained in:
parent
08f5df9849
commit
513e92da23
@ -68,6 +68,7 @@ Nmea_Printer::Nmea_Printer(std::string filename, bool flag_nmea_tty_port, std::s
|
|||||||
{
|
{
|
||||||
nmea_dev_descriptor = -1;
|
nmea_dev_descriptor = -1;
|
||||||
}
|
}
|
||||||
|
print_avg_pos = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -141,7 +142,7 @@ bool Nmea_Printer::Print_Nmea_Line(const std::shared_ptr<Pvt_Solution>& pvt_data
|
|||||||
|
|
||||||
// set the new PVT data
|
// set the new PVT data
|
||||||
d_PVT_data = pvt_data;
|
d_PVT_data = pvt_data;
|
||||||
d_PVT_data->d_flag_averaging = print_average_values;
|
print_avg_pos = print_average_values;
|
||||||
|
|
||||||
// generate the NMEA sentences
|
// generate the NMEA sentences
|
||||||
|
|
||||||
@ -366,7 +367,7 @@ std::string Nmea_Printer::get_GPRMC()
|
|||||||
sentence_str << ",V";
|
sentence_str << ",V";
|
||||||
};
|
};
|
||||||
|
|
||||||
if (d_PVT_data->d_flag_averaging == true)
|
if (print_avg_pos == true)
|
||||||
{
|
{
|
||||||
// Latitude ddmm.mmmm,(N or S)
|
// Latitude ddmm.mmmm,(N or S)
|
||||||
sentence_str << "," << latitude_to_hm(d_PVT_data->d_avg_latitude_d);
|
sentence_str << "," << latitude_to_hm(d_PVT_data->d_avg_latitude_d);
|
||||||
|
@ -83,6 +83,7 @@ private:
|
|||||||
std::string longitude_to_hm(double longitude);
|
std::string longitude_to_hm(double longitude);
|
||||||
std::string latitude_to_hm(double lat);
|
std::string latitude_to_hm(double lat);
|
||||||
char checkSum(std::string sentence);
|
char checkSum(std::string sentence);
|
||||||
|
bool print_avg_pos;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user