drivers/sensors/gnss: Skip copying extended satellite flags
The extended member `flags` of `info` of `struct sensor_gnss_satellite` is not parsed from GSV. Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
508418917e
commit
8c32bed29e
1 changed files with 8 additions and 2 deletions
|
|
@ -537,8 +537,14 @@ static void gnss_parse_nmea(FAR struct gnss_upperhalf_s *upper,
|
|||
satellite.timestamp = sensor_get_timestamp();
|
||||
satellite.count = frame.total_msgs;
|
||||
satellite.satellites = frame.total_sats;
|
||||
memcpy(satellite.info, frame.sats,
|
||||
sizeof(satellite.info[0]) * 4);
|
||||
for (i = 0; i < SENSOR_GNSS_SAT_INFO_MAX; i++)
|
||||
{
|
||||
satellite.info[i].svid = frame.sats[i].nr;
|
||||
satellite.info[i].elevation = frame.sats[i].elevation;
|
||||
satellite.info[i].azimuth = frame.sats[i].azimuth;
|
||||
satellite.info[i].snr = frame.sats[i].snr;
|
||||
}
|
||||
|
||||
lower = &upper->dev[SENSOR_GNSS_IDX_GNSS_SATELLITE].lower;
|
||||
|
||||
for (i = 0; i < nitems(g_gnss_constellation); i++)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue