aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/gps/gps.cpp
diff options
context:
space:
mode:
authorKynos <mail01@delago.net>2014-05-30 14:30:25 +0200
committerKynos <mail01@delago.net>2014-05-30 14:30:25 +0200
commit9bad828bc0033c7017978de2321d3a8698c0afc6 (patch)
treedc82fbdcdf09e4ee5060cdae032ed659fcc2b41d /src/drivers/gps/gps.cpp
parent7349fa90376714b00fe920538950b31a46169d60 (diff)
downloadpx4-firmware-9bad828bc0033c7017978de2321d3a8698c0afc6.tar.gz
px4-firmware-9bad828bc0033c7017978de2321d3a8698c0afc6.tar.bz2
px4-firmware-9bad828bc0033c7017978de2321d3a8698c0afc6.zip
U-blox driver rework, step 2
Moved satellite info from vehicle_gps_position_s into a new uORB topic satellite_info. Renamed satellites_visible to satellites_used to reflect true content. sdlog2 will log info for GPS satellites only for now.
Diffstat (limited to 'src/drivers/gps/gps.cpp')
-rw-r--r--src/drivers/gps/gps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/gps/gps.cpp b/src/drivers/gps/gps.cpp
index 5342ccf78..d2ffc30ba 100644
--- a/src/drivers/gps/gps.cpp
+++ b/src/drivers/gps/gps.cpp
@@ -449,7 +449,7 @@ GPS::print_info()
if (_report.timestamp_position != 0) {
warnx("position lock: %dD, satellites: %d, last update: %8.4fms ago", (int)_report.fix_type,
- _report.satellites_visible, (double)(hrt_absolute_time() - _report.timestamp_position) / 1000.0f);
+ _report.satellites_used, (double)(hrt_absolute_time() - _report.timestamp_position) / 1000.0f);
warnx("lat: %d, lon: %d, alt: %d", _report.lat, _report.lon, _report.alt);
warnx("eph: %.2fm, epv: %.2fm", (double)_report.eph_m, (double)_report.epv_m);
warnx("rate position: \t%6.2f Hz", (double)_Helper->get_position_update_rate());