diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-11 17:33:38 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-11 17:33:38 +0200 |
commit | f487536caf9e26c9fc1e1aec6dc9df35fcd44899 (patch) | |
tree | 5d477ee1d6a5ef835f57ed6f843f5d3a7fa0cc40 /src/drivers | |
parent | 11d9724563f005ed722d326e8bef125bfec29865 (diff) | |
parent | ee573fea9d27e7925b375abd95d540c0fda30d4c (diff) | |
download | px4-firmware-f487536caf9e26c9fc1e1aec6dc9df35fcd44899.tar.gz px4-firmware-f487536caf9e26c9fc1e1aec6dc9df35fcd44899.tar.bz2 px4-firmware-f487536caf9e26c9fc1e1aec6dc9df35fcd44899.zip |
Merge pull request #1168 from PX4/gps_printing
GPS driver: Print velocity as part of status command
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/gps/gps.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/drivers/gps/gps.cpp b/src/drivers/gps/gps.cpp index 401b65dd4..34dd63086 100644 --- a/src/drivers/gps/gps.cpp +++ b/src/drivers/gps/gps.cpp @@ -127,7 +127,7 @@ private: /** * Try to configure the GPS, handle outgoing communication to the GPS */ - void config(); + void config(); /** * Trampoline to the worker task @@ -486,6 +486,8 @@ GPS::print_info() warnx("position lock: %dD, satellites: %d, last update: %8.4fms ago", (int)_report_gps_pos.fix_type, _report_gps_pos.satellites_used, (double)(hrt_absolute_time() - _report_gps_pos.timestamp_position) / 1000.0); warnx("lat: %d, lon: %d, alt: %d", _report_gps_pos.lat, _report_gps_pos.lon, _report_gps_pos.alt); + warnx("vel: %.2fm/s, %.2fm/s, %.2fm/s", (double)_report_gps_pos.vel_n_m_s, + (double)_report_gps_pos.vel_e_m_s, (double)_report_gps_pos.vel_d_m_s); warnx("eph: %.2fm, epv: %.2fm", (double)_report_gps_pos.eph, (double)_report_gps_pos.epv); warnx("rate position: \t%6.2f Hz", (double)_Helper->get_position_update_rate()); warnx("rate velocity: \t%6.2f Hz", (double)_Helper->get_velocity_update_rate()); |