1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-09-29 15:30:52 +00:00

Fix warning

This commit is contained in:
Carles Fernandez 2018-08-11 20:50:06 +02:00
parent b2db6abdaa
commit 49c480018c
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -481,12 +481,12 @@ int main(int argc, char** argv)
Eph_map = global_gps_ephemeris_map.get_map_copy();
current_TOW = Eph_map.begin()->second.d_TOW;
time_t t = utc_time(Eph_map.begin()->second.i_GPS_week, (int64_t)current_TOW);
time_t t = utc_time(Eph_map.begin()->second.i_GPS_week, static_cast<int64_t>(current_TOW));
fprintf(stdout, "Reference Time:\n");
fprintf(stdout, " GPS Week: %d\n", Eph_map.begin()->second.i_GPS_week);
fprintf(stdout, " GPS TOW: %lld %lf\n", (int64_t)current_TOW, (int64_t)current_TOW * 0.08);
fprintf(stdout, " ~ UTC: %s", ctime(&t));
std::cout << "Reference Time:" << std::endl;
std::cout << " GPS Week: " << Eph_map.begin()->second.i_GPS_week << std::endl;
std::cout << " GPS TOW: " << static_cast<int64_t>(current_TOW) << " " << static_cast<int64_t>(current_TOW) * 0.08 << std::endl;
std::cout << " ~ UTC: " << ctime(&t) << std::endl;
std::cout << "Current TOW obtained from SUPL assistance = " << current_TOW << std::endl;
}
else