diff options
author | Kynos <mail01@delago.net> | 2014-05-30 14:30:25 +0200 |
---|---|---|
committer | Kynos <mail01@delago.net> | 2014-05-30 14:30:25 +0200 |
commit | 9bad828bc0033c7017978de2321d3a8698c0afc6 (patch) | |
tree | dc82fbdcdf09e4ee5060cdae032ed659fcc2b41d /src/drivers/gps/ubx.cpp | |
parent | 7349fa90376714b00fe920538950b31a46169d60 (diff) | |
download | px4-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/ubx.cpp')
-rw-r--r-- | src/drivers/gps/ubx.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/gps/ubx.cpp b/src/drivers/gps/ubx.cpp index d7e9454ae..462875b6c 100644 --- a/src/drivers/gps/ubx.cpp +++ b/src/drivers/gps/ubx.cpp @@ -55,6 +55,7 @@ #include <systemlib/err.h> #include <uORB/uORB.h> #include <uORB/topics/vehicle_gps_position.h> +#include <uORB/topics/satellite_info.h> #include <drivers/drv_hrt.h> #include "ubx.h" @@ -451,7 +452,7 @@ UBX::handle_message() _gps_position->s_variance_m_s = packet->sAcc; _gps_position->p_variance_m = packet->pAcc; _gps_position->timestamp_variance = hrt_absolute_time(); - _gps_position->satellites_visible = packet->numSV; + _gps_position->satellites_used = packet->numSV; ret = 1; break; |