Skip to content

Commit d02b053

Browse files
JianyuWang0623xiaoxiang781216
authored andcommitted
uORB/sensor: Update macro of sensor_gnss format string
Make it easier to extend the format of struct member Signed-off-by: wangjianyu3 <[email protected]>
1 parent ba0a8fb commit d02b053

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

system/uorb/sensor/gnss.c

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,21 @@
2929
****************************************************************************/
3030

3131
#ifdef CONFIG_DEBUG_UORB
32-
#define UORB_DEBUG_FORMAT_SENSOR_GNSS \
33-
"timestamp:%" PRIu64 ",time_utc:%" PRIu64 ",latitude:%hf,longitude:%hf," \
34-
"altitude:%hf,altitude_ellipsoid:%hf,eph:%hf,epv:%hf,hdop:%hf,pdop:%hf," \
35-
"vdop:%hf,ground_speed:%hf,course:%hf,satellites_used:%" PRIu32 ""
32+
#define UORB_DEBUG_FORMAT_SENSOR_GNSS \
33+
"timestamp:%" PRIu64 \
34+
",time_utc:%" PRIu64 \
35+
",latitude:%hf" \
36+
",longitude:%hf" \
37+
",altitude:%hf" \
38+
",altitude_ellipsoid:%hf" \
39+
",eph:%hf" \
40+
",epv:%hf" \
41+
",hdop:%hf" \
42+
",pdop:%hf" \
43+
",vdop:%hf" \
44+
",ground_speed:%hf" \
45+
",course:%hf" \
46+
",satellites_used:%" PRIu32 ""
3647

3748
#define SENSOR_GNSS_SATELLITE_INFO_FORMAT(idx) \
3849
",svid" #idx ":%" PRIu32 \

0 commit comments

Comments
 (0)