Gnss adapter: fill in proper std deviation in position report

The north and east standard deviation fields are not filled in
properly in position report

Change-Id: Ic243a6862f3fa4e723b507d391c9a904d65d3c30
CRs-fixed: 2426344
This commit is contained in:
Wei Chen 2019-03-29 16:59:07 -07:00 committed by Gerrit - the friendly Code Review server
parent 9b1ce88872
commit 0330e79d4a

View file

@ -303,11 +303,11 @@ GnssAdapter::convertLocationInfo(GnssLocationInfoNotification& out,
}
if (GPS_LOCATION_EXTENDED_HAS_NORTH_STD_DEV & locationExtended.flags) {
out.flags |= GNSS_LOCATION_INFO_NORTH_STD_DEV_BIT;
out.northVelocityStdDeviation = locationExtended.northStdDeviation;
out.northStdDeviation = locationExtended.northStdDeviation;
}
if (GPS_LOCATION_EXTENDED_HAS_EAST_STD_DEV & locationExtended.flags) {
out.flags |= GNSS_LOCATION_INFO_EAST_STD_DEV_BIT;
out.eastVelocityStdDeviation = locationExtended.eastStdDeviation;
out.eastStdDeviation = locationExtended.eastStdDeviation;
}
if (GPS_LOCATION_EXTENDED_HAS_NORTH_VEL & locationExtended.flags) {
out.flags |= GNSS_LOCATION_INFO_NORTH_VEL_BIT;