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:
parent
b2db6abdaa
commit
49c480018c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user