@@ -71,9 +71,9 @@ static void print_force(FAR const char *buffer, FAR const char *name);
71
71
static void print_ppgd (FAR const char * buffer , FAR const char * name );
72
72
static void print_ppgq (FAR const char * buffer , FAR const char * name );
73
73
static void print_cap (FAR const char * buffer , FAR const char * name );
74
- static void print_gps (FAR const char * buffer , FAR const char * name );
75
- static void print_gps_satellite (FAR const char * buffer ,
76
- FAR const char * name );
74
+ static void print_gnss (FAR const char * buffer , FAR const char * name );
75
+ static void print_gnss_satellite (FAR const char * buffer ,
76
+ FAR const char * name );
77
77
78
78
/****************************************************************************
79
79
* Private Data
@@ -90,9 +90,9 @@ static const struct sensor_info g_sensor_info[] =
90
90
{print_valf , sizeof (struct sensor_dust ), "dust" },
91
91
{print_ecg , sizeof (struct sensor_ecg ), "ecg" },
92
92
{print_force , sizeof (struct sensor_force ), "force" },
93
- {print_gps , sizeof (struct sensor_gps ), "gps " },
94
- {print_gps_satellite ,
95
- sizeof (struct sensor_gps_satellite ), "gps_satellite " },
93
+ {print_gnss , sizeof (struct sensor_gnss ), "gnss " },
94
+ {print_gnss_satellite ,
95
+ sizeof (struct sensor_gnss_satellite ), "gnss_satellite " },
96
96
{print_vec3 , sizeof (struct sensor_gyro ), "gyro" },
97
97
{print_valb , sizeof (struct sensor_hall ), "hall" },
98
98
{print_valf , sizeof (struct sensor_hbeat ), "hbeat" },
@@ -212,9 +212,9 @@ static void print_cap(FAR const char *buffer, FAR const char *name)
212
212
event -> rawdata [1 ], event -> rawdata [2 ], event -> rawdata [3 ]);
213
213
}
214
214
215
- static void print_gps (const char * buffer , const char * name )
215
+ static void print_gnss (const char * buffer , const char * name )
216
216
{
217
- FAR struct sensor_gps * event = (FAR struct sensor_gps * )buffer ;
217
+ FAR struct sensor_gnss * event = (FAR struct sensor_gnss * )buffer ;
218
218
219
219
printf ("%s: timestamp:%" PRIu64 " time_utc: %" PRIu64 " latitude: %f "
220
220
"longitude: %f altitude: %f altitude_ellipsoid: %f eph: %f epv: %f "
@@ -226,10 +226,11 @@ static void print_gps(const char *buffer, const char *name)
226
226
event -> ground_speed , event -> course , event -> satellites_used );
227
227
}
228
228
229
- static void print_gps_satellite (FAR const char * buffer , FAR const char * name )
229
+ static void print_gnss_satellite (FAR const char * buffer ,
230
+ FAR const char * name )
230
231
{
231
- FAR FAR struct sensor_gps_satellite * event =
232
- (FAR struct sensor_gps_satellite * )buffer ;
232
+ FAR FAR struct sensor_gnss_satellite * event =
233
+ (FAR struct sensor_gnss_satellite * )buffer ;
233
234
234
235
printf ("%s: timestamp: %" PRIu64 " count: %" PRIu32
235
236
" satellites: %" PRIu32 "\n" ,
0 commit comments