mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
uORB/sensor: Update macro of sensor_gnss format string
Make it easier to extend the format of struct member Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
ba0a8fbcb2
commit
d02b05328a
1 changed files with 15 additions and 4 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue