29
29
****************************************************************************/
30
30
31
31
#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 ""
36
+
32
37
static const char sensor_gnss_format [] =
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 "" ;
38
+ UORB_DEBUG_FORMAT_SENSOR_GNSS ;
39
+
40
+ static const char sensor_gnss_clock_format [] =
41
+ "flags:%" PRIx32 ",leap_second:%" PRId32 ",time_ns:%" PRId64 ","
42
+ "time_uncertainty_ns:%hf,hw_clock_discontinuity_count:%" PRIu32 ","
43
+ "full_bias_ns:%" PRId64 ",bias_ns:%hf,bias_uncertainty_ns:%hf,"
44
+ "drift_nsps:%hf,drift_uncertainty_nsps:%hf" ;
45
+
46
+ static const char sensor_gnss_geofence_event_format [] =
47
+ "type:%" PRId32 ",geofence_id:%" PRId32 ","
48
+ UORB_DEBUG_FORMAT_SENSOR_GNSS ","
49
+ "timestamp:%" PRId64 ",status:%" PRId32 ",transition:%" PRId32 "" ;
50
+
51
+ static const char sensor_gnss_measurement_format [] =
52
+ "flags:%" PRIx32 ",svid:%" PRId32 ",constellation:%" PRIu32 ","
53
+ "time_offset_ns:%hf,received_sv_time_in_ns:%" PRId64 ","
54
+ "received_sv_time_uncertainty_in_ns:%" PRId64 ",state:%" PRIu32 ","
55
+ "c_n0_dbhz:%hf,pseudorange_rate_mps:%hf,"
56
+ "pseudorange_rate_uncertainty_mps:%hf,"
57
+ "accumulated_delta_range_state:%" PRIu32 ",accumulated_delta_range_m:%hf,"
58
+ "accumulated_delta_range_uncertainty_m:%hf,"
59
+ "carrier_frequency_hz:%hf,carrier_cycles:%" PRId64 ",carrier_phase:%hf,"
60
+ "carrier_phase_uncertainty:%hf,multipath_indicator:%" PRIu32 ","
61
+ "snr:%" PRIu32 "" ;
36
62
37
63
static const char sensor_gnss_satellite_format [] =
38
64
"timestamp:%" PRIu64 ",count:%" PRIu32 ",satellites:%" PRIu32 ","
65
+ "constellation:%" PRIu32 ","
39
66
"svid0:%" PRIu32 ",elevation0:%" PRIu32 ",azimuth0:%" PRIu32 ","
40
67
"snr0:%" PRIu32 ",svid1:%" PRIu32 ",elevation1:%" PRIu32 ","
41
68
"azimuth1:%" PRIu32 ",snr1:%" PRIu32 ",svid2:%" PRIu32 ","
@@ -49,5 +76,11 @@ static const char sensor_gnss_satellite_format[] =
49
76
****************************************************************************/
50
77
51
78
ORB_DEFINE (sensor_gnss , struct sensor_gnss , sensor_gnss_format );
79
+ ORB_DEFINE (sensor_gnss_clock , struct sensor_gnss_clock ,
80
+ sensor_gnss_clock_format );
81
+ ORB_DEFINE (sensor_gnss_geofence_event , struct sensor_gnss_geofence_event ,
82
+ sensor_gnss_geofence_event_format );
83
+ ORB_DEFINE (sensor_gnss_measurement , struct sensor_gnss_measurement ,
84
+ sensor_gnss_measurement_format );
52
85
ORB_DEFINE (sensor_gnss_satellite , struct sensor_gnss_satellite ,
53
86
sensor_gnss_satellite_format );
0 commit comments