1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-11-17 15:24:56 +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(); Eph_map = global_gps_ephemeris_map.get_map_copy();
current_TOW = Eph_map.begin()->second.d_TOW; 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"); std::cout << "Reference Time:" << std::endl;
fprintf(stdout, " GPS Week: %d\n", Eph_map.begin()->second.i_GPS_week); std::cout << " GPS Week: " << Eph_map.begin()->second.i_GPS_week << std::endl;
fprintf(stdout, " GPS TOW: %lld %lf\n", (int64_t)current_TOW, (int64_t)current_TOW * 0.08); std::cout << " GPS TOW: " << static_cast<int64_t>(current_TOW) << " " << static_cast<int64_t>(current_TOW) * 0.08 << std::endl;
fprintf(stdout, " ~ UTC: %s", ctime(&t)); std::cout << " ~ UTC: " << ctime(&t) << std::endl;
std::cout << "Current TOW obtained from SUPL assistance = " << current_TOW << std::endl; std::cout << "Current TOW obtained from SUPL assistance = " << current_TOW << std::endl;
} }
else else