Skip to content

Commit 8764f50

Browse files
JianyuWang0623xiaoxiang781216
authored andcommitted
testing/sensortest: Rename GPS to GNSS
Signed-off-by: wangjianyu3 <[email protected]>
1 parent 2f280f4 commit 8764f50

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

testing/sensortest/sensortest.c

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ static void print_force(FAR const char *buffer, FAR const char *name);
7171
static void print_ppgd(FAR const char *buffer, FAR const char *name);
7272
static void print_ppgq(FAR const char *buffer, FAR const char *name);
7373
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);
7777

7878
/****************************************************************************
7979
* Private Data
@@ -90,9 +90,9 @@ static const struct sensor_info g_sensor_info[] =
9090
{print_valf, sizeof(struct sensor_dust), "dust"},
9191
{print_ecg, sizeof(struct sensor_ecg), "ecg"},
9292
{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"},
9696
{print_vec3, sizeof(struct sensor_gyro), "gyro"},
9797
{print_valb, sizeof(struct sensor_hall), "hall"},
9898
{print_valf, sizeof(struct sensor_hbeat), "hbeat"},
@@ -212,9 +212,9 @@ static void print_cap(FAR const char *buffer, FAR const char *name)
212212
event->rawdata[1], event->rawdata[2], event->rawdata[3]);
213213
}
214214

215-
static void print_gps(const char *buffer, const char *name)
215+
static void print_gnss(const char *buffer, const char *name)
216216
{
217-
FAR struct sensor_gps *event = (FAR struct sensor_gps *)buffer;
217+
FAR struct sensor_gnss *event = (FAR struct sensor_gnss *)buffer;
218218

219219
printf("%s: timestamp:%" PRIu64 " time_utc: %" PRIu64 " latitude: %f "
220220
"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)
226226
event->ground_speed, event->course, event->satellites_used);
227227
}
228228

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)
230231
{
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;
233234

234235
printf("%s: timestamp: %" PRIu64 " count: %" PRIu32
235236
" satellites: %" PRIu32 "\n",

0 commit comments

Comments
 (0)