Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add carrier frequency for GNSS Satellite #2910

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions system/uorb/sensor/gnss.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,21 @@
****************************************************************************/

#ifdef CONFIG_DEBUG_UORB
#define UORB_DEBUG_FORMAT_SENSOR_GNSS \
"timestamp:%" PRIu64 ",time_utc:%" PRIu64 ",latitude:%hf,longitude:%hf," \
"altitude:%hf,altitude_ellipsoid:%hf,eph:%hf,epv:%hf,hdop:%hf,pdop:%hf," \
"vdop:%hf,ground_speed:%hf,course:%hf,satellites_used:%" PRIu32 ""
#define UORB_DEBUG_FORMAT_SENSOR_GNSS \
"timestamp:%" PRIu64 \
",time_utc:%" PRIu64 \
",latitude:%hf" \
",longitude:%hf" \
",altitude:%hf" \
",altitude_ellipsoid:%hf" \
",eph:%hf" \
",epv:%hf" \
",hdop:%hf" \
",pdop:%hf" \
",vdop:%hf" \
",ground_speed:%hf" \
",course:%hf" \
",satellites_used:%" PRIu32 ""

#define SENSOR_GNSS_SATELLITE_INFO_FORMAT(idx) \
",svid" #idx ":%" PRIu32 \
Expand Down Expand Up @@ -69,6 +80,7 @@ static const char sensor_gnss_measurement_format[] =
static const char sensor_gnss_satellite_format[] =
"timestamp:%" PRIu64 ",count:%" PRIu32 ",satellites:%" PRIu32 ","
"constellation:%" PRIu32 ""
",cf:%hf"
SENSOR_GNSS_SATELLITE_INFO_FORMAT(0)
SENSOR_GNSS_SATELLITE_INFO_FORMAT(1)
SENSOR_GNSS_SATELLITE_INFO_FORMAT(2)
Expand Down
Loading