Changed gps position topic mostly to SI units and float, removed counters and added specifig timestamps

This commit is contained in:
Julian Oes
2013-02-06 12:41:05 -08:00
parent a79ad17f09
commit fc4be3e728
9 changed files with 139 additions and 139 deletions
+2 -2
View File
@@ -543,9 +543,9 @@ GPS::print_info()
break;
}
warnx("port: %s, baudrate: %d, status: %s", _port, _baudrate, (_config_needed) ? "NOT OK" : "OK");
if (_report.timestamp != 0) {
if (_report.timestamp_position != 0) {
warnx("position lock: %dD, last update %4.2f seconds ago", (int)_report.fix_type,
(double)((float)(hrt_absolute_time() - _report.timestamp) / 1000000.0f));
(double)((float)(hrt_absolute_time() - _report.timestamp_position) / 1000000.0f));
warnx("lat: %d, lon: %d, alt: %d", _report.lat, _report.lon, _report.alt);
warnx("update rate: %6.2f Hz", (double)_rate);
}