Lines Matching refs:locationExtended
205 const GpsLocationExtended& locationExtended, in convertLocation() argument
231 if (GPS_LOCATION_EXTENDED_HAS_VERT_UNC & locationExtended.flags) { in convertLocation()
233 out.verticalAccuracy = locationExtended.vert_unc; in convertLocation()
235 if (GPS_LOCATION_EXTENDED_HAS_SPEED_UNC & locationExtended.flags) { in convertLocation()
237 out.speedAccuracy = locationExtended.speed_unc; in convertLocation()
239 if (GPS_LOCATION_EXTENDED_HAS_BEARING_UNC & locationExtended.flags) { in convertLocation()
241 out.bearingAccuracy = locationExtended.bearing_unc; in convertLocation()
290 const GpsLocationExtended& locationExtended) in convertLocationInfo() argument
293 if (GPS_LOCATION_EXTENDED_HAS_ALTITUDE_MEAN_SEA_LEVEL & locationExtended.flags) { in convertLocationInfo()
295 out.altitudeMeanSeaLevel = locationExtended.altitudeMeanSeaLevel; in convertLocationInfo()
297 if (GPS_LOCATION_EXTENDED_HAS_EXT_DOP & locationExtended.flags) { in convertLocationInfo()
299 out.pdop = locationExtended.extDOP.PDOP; in convertLocationInfo()
300 out.hdop = locationExtended.extDOP.HDOP; in convertLocationInfo()
301 out.vdop = locationExtended.extDOP.VDOP; in convertLocationInfo()
302 out.gdop = locationExtended.extDOP.GDOP; in convertLocationInfo()
303 out.tdop = locationExtended.extDOP.TDOP; in convertLocationInfo()
304 } else if (GPS_LOCATION_EXTENDED_HAS_DOP & locationExtended.flags) { in convertLocationInfo()
306 out.pdop = locationExtended.pdop; in convertLocationInfo()
307 out.hdop = locationExtended.hdop; in convertLocationInfo()
308 out.vdop = locationExtended.vdop; in convertLocationInfo()
310 if (GPS_LOCATION_EXTENDED_HAS_MAG_DEV & locationExtended.flags) { in convertLocationInfo()
312 out.magneticDeviation = locationExtended.magneticDeviation; in convertLocationInfo()
314 if (GPS_LOCATION_EXTENDED_HAS_HOR_RELIABILITY & locationExtended.flags) { in convertLocationInfo()
316 switch (locationExtended.horizontal_reliability) { in convertLocationInfo()
334 if (GPS_LOCATION_EXTENDED_HAS_VERT_RELIABILITY & locationExtended.flags) { in convertLocationInfo()
336 switch (locationExtended.vertical_reliability) { in convertLocationInfo()
354 if (GPS_LOCATION_EXTENDED_HAS_HOR_ELIP_UNC_MAJOR & locationExtended.flags) { in convertLocationInfo()
356 out.horUncEllipseSemiMajor = locationExtended.horUncEllipseSemiMajor; in convertLocationInfo()
358 if (GPS_LOCATION_EXTENDED_HAS_HOR_ELIP_UNC_MINOR & locationExtended.flags) { in convertLocationInfo()
360 out.horUncEllipseSemiMinor = locationExtended.horUncEllipseSemiMinor; in convertLocationInfo()
362 if (GPS_LOCATION_EXTENDED_HAS_HOR_ELIP_UNC_AZIMUTH & locationExtended.flags) { in convertLocationInfo()
364 out.horUncEllipseOrientAzimuth = locationExtended.horUncEllipseOrientAzimuth; in convertLocationInfo()
366 if (GPS_LOCATION_EXTENDED_HAS_NORTH_STD_DEV & locationExtended.flags) { in convertLocationInfo()
368 out.northStdDeviation = locationExtended.northStdDeviation; in convertLocationInfo()
370 if (GPS_LOCATION_EXTENDED_HAS_EAST_STD_DEV & locationExtended.flags) { in convertLocationInfo()
372 out.eastStdDeviation = locationExtended.eastStdDeviation; in convertLocationInfo()
374 if (GPS_LOCATION_EXTENDED_HAS_NORTH_VEL & locationExtended.flags) { in convertLocationInfo()
376 out.northVelocity = locationExtended.northVelocity; in convertLocationInfo()
378 if (GPS_LOCATION_EXTENDED_HAS_NORTH_VEL_UNC & locationExtended.flags) { in convertLocationInfo()
380 out.northVelocityStdDeviation = locationExtended.northVelocityStdDeviation; in convertLocationInfo()
382 if (GPS_LOCATION_EXTENDED_HAS_EAST_VEL & locationExtended.flags) { in convertLocationInfo()
384 out.eastVelocity = locationExtended.eastVelocity; in convertLocationInfo()
386 if (GPS_LOCATION_EXTENDED_HAS_EAST_VEL_UNC & locationExtended.flags) { in convertLocationInfo()
388 out.eastVelocityStdDeviation = locationExtended.eastVelocityStdDeviation; in convertLocationInfo()
390 if (GPS_LOCATION_EXTENDED_HAS_UP_VEL & locationExtended.flags) { in convertLocationInfo()
392 out.upVelocity = locationExtended.upVelocity; in convertLocationInfo()
394 if (GPS_LOCATION_EXTENDED_HAS_UP_VEL_UNC & locationExtended.flags) { in convertLocationInfo()
396 out.upVelocityStdDeviation = locationExtended.upVelocityStdDeviation; in convertLocationInfo()
398 if (GPS_LOCATION_EXTENDED_HAS_GNSS_SV_USED_DATA & locationExtended.flags) { in convertLocationInfo()
401 locationExtended.gnss_sv_used_ids.gps_sv_used_ids_mask; in convertLocationInfo()
403 locationExtended.gnss_sv_used_ids.glo_sv_used_ids_mask; in convertLocationInfo()
405 locationExtended.gnss_sv_used_ids.gal_sv_used_ids_mask; in convertLocationInfo()
407 locationExtended.gnss_sv_used_ids.bds_sv_used_ids_mask; in convertLocationInfo()
409 locationExtended.gnss_sv_used_ids.qzss_sv_used_ids_mask; in convertLocationInfo()
423 out.numOfMeasReceived = locationExtended.numOfMeasReceived; in convertLocationInfo()
424 for (int idx =0; idx < locationExtended.numOfMeasReceived; idx++) { in convertLocationInfo()
426 locationExtended.measUsageInfo[idx].gnssSignalType; in convertLocationInfo()
428 locationExtended.measUsageInfo[idx].gnssSvId; in convertLocationInfo()
430 locationExtended.measUsageInfo[idx].gnssConstellation; in convertLocationInfo()
433 if (GPS_LOCATION_EXTENDED_HAS_NAV_SOLUTION_MASK & locationExtended.flags) { in convertLocationInfo()
435 out.navSolutionMask = locationExtended.navSolutionMask; in convertLocationInfo()
437 if (GPS_LOCATION_EXTENDED_HAS_POS_TECH_MASK & locationExtended.flags) { in convertLocationInfo()
439 out.posTechMask = locationExtended.tech_mask; in convertLocationInfo()
441 if (GPS_LOCATION_EXTENDED_HAS_POS_DYNAMICS_DATA & locationExtended.flags) { in convertLocationInfo()
443 if (locationExtended.bodyFrameData.bodyFrameDataMask & in convertLocationInfo()
447 if (locationExtended.bodyFrameData.bodyFrameDataMask & in convertLocationInfo()
451 if (locationExtended.bodyFrameData.bodyFrameDataMask & in convertLocationInfo()
455 if (locationExtended.bodyFrameData.bodyFrameDataMask & LOCATION_NAV_DATA_HAS_YAW_RATE_BIT) { in convertLocationInfo()
458 if (locationExtended.bodyFrameData.bodyFrameDataMask & LOCATION_NAV_DATA_HAS_PITCH_BIT) { in convertLocationInfo()
461 out.bodyFrameData.longAccel = locationExtended.bodyFrameData.longAccel; in convertLocationInfo()
462 out.bodyFrameData.latAccel = locationExtended.bodyFrameData.latAccel; in convertLocationInfo()
463 out.bodyFrameData.vertAccel = locationExtended.bodyFrameData.vertAccel; in convertLocationInfo()
464 out.bodyFrameData.yawRate = locationExtended.bodyFrameData.yawRate; in convertLocationInfo()
465 out.bodyFrameData.pitch = locationExtended.bodyFrameData.pitch; in convertLocationInfo()
467 if (GPS_LOCATION_EXTENDED_HAS_GPS_TIME & locationExtended.flags) { in convertLocationInfo()
469 out.gnssSystemTime.gnssSystemTimeSrc = locationExtended.gnssSystemTime.gnssSystemTimeSrc; in convertLocationInfo()
470 out.gnssSystemTime.u = locationExtended.gnssSystemTime.u; in convertLocationInfo()
472 if (GPS_LOCATION_EXTENDED_HAS_NORTH_VEL & locationExtended.flags) { in convertLocationInfo()
474 out.northVelocity = locationExtended.northVelocity; in convertLocationInfo()
476 if (GPS_LOCATION_EXTENDED_HAS_EAST_VEL & locationExtended.flags) { in convertLocationInfo()
478 out.eastVelocity = locationExtended.eastVelocity; in convertLocationInfo()
480 if (GPS_LOCATION_EXTENDED_HAS_UP_VEL & locationExtended.flags) { in convertLocationInfo()
482 out.upVelocity = locationExtended.upVelocity; in convertLocationInfo()
484 if (GPS_LOCATION_EXTENDED_HAS_NORTH_VEL_UNC & locationExtended.flags) { in convertLocationInfo()
486 out.northVelocityStdDeviation = locationExtended.northVelocityStdDeviation; in convertLocationInfo()
488 if (GPS_LOCATION_EXTENDED_HAS_EAST_VEL_UNC & locationExtended.flags) { in convertLocationInfo()
490 out.eastVelocityStdDeviation = locationExtended.eastVelocityStdDeviation; in convertLocationInfo()
492 if (GPS_LOCATION_EXTENDED_HAS_UP_VEL_UNC & locationExtended.flags) { in convertLocationInfo()
494 out.upVelocityStdDeviation = locationExtended.upVelocityStdDeviation; in convertLocationInfo()
498 out.gnssSystemTime = locationExtended.gnssSystemTime; in convertLocationInfo()
500 if (GPS_LOCATION_EXTENDED_HAS_LEAP_SECONDS & locationExtended.flags) { in convertLocationInfo()
502 out.leapSeconds = locationExtended.leapSeconds; in convertLocationInfo()
505 if (GPS_LOCATION_EXTENDED_HAS_TIME_UNC & locationExtended.flags) { in convertLocationInfo()
507 out.timeUncMs = locationExtended.timeUncMs; in convertLocationInfo()
510 if (GPS_LOCATION_EXTENDED_HAS_CALIBRATION_CONFIDENCE & locationExtended.flags) { in convertLocationInfo()
512 out.calibrationConfidence = locationExtended.calibrationConfidence; in convertLocationInfo()
515 if (GPS_LOCATION_EXTENDED_HAS_CALIBRATION_STATUS & locationExtended.flags) { in convertLocationInfo()
517 out.calibrationStatus = locationExtended.calibrationStatus; in convertLocationInfo()
520 if (GPS_LOCATION_EXTENDED_HAS_OUTPUT_ENG_TYPE & locationExtended.flags) { in convertLocationInfo()
522 out.locOutputEngType = locationExtended.locOutputEngType; in convertLocationInfo()
525 if (GPS_LOCATION_EXTENDED_HAS_OUTPUT_ENG_MASK & locationExtended.flags) { in convertLocationInfo()
527 out.locOutputEngMask = locationExtended.locOutputEngMask; in convertLocationInfo()
3203 const GpsLocationExtended& locationExtended, in reportPositionEvent() argument
3213 locationExtended.locOutputEngType, ulpLocation.unpropagatedPosition, in reportPositionEvent()
3218 mEngHubProxy->gnssReportPosition(ulpLocation, locationExtended, status); in reportPositionEvent()
3223 engLocationInfo.locationExtended = locationExtended; in reportPositionEvent()
3250 const GpsLocationExtended& locationExtended, in reportPositionEvent()
3258 mLocationExtended(locationExtended), in reportPositionEvent()
3288 sendMsg(new MsgReportPosition(*this, ulpLocation, locationExtended, in reportPositionEvent()
3362 const GpsLocationExtended& locationExtended, in reportPosition() argument
3371 convertLocationInfo(locationInfo, locationExtended); in reportPosition()
3372 convertLocation(locationInfo.location, ulpLocation, locationExtended, techMask); in reportPosition()
3399 if (locationExtended.flags & GPS_LOCATION_EXTENDED_HAS_GNSS_SV_USED_DATA) { in reportPosition()
3401 mGnssSvIdUsedInPosition = locationExtended.gnss_sv_used_ids; in reportPosition()
3402 if (locationExtended.flags & GPS_LOCATION_EXTENDED_HAS_MULTIBAND) { in reportPosition()
3404 mGnssMbSvIdUsedInPosition = locationExtended.gnss_mb_sv_used_ids; in reportPosition()
3424 (LOC_RELIABILITY_NOT_SET == locationExtended.horizontal_reliability)); in reportPosition()
3428 loc_nmea_generate_pos(ulpLocation, locationExtended, mLocSystemInfo, in reportPosition()
3455 if ((GPS_LOCATION_EXTENDED_HAS_OUTPUT_ENG_TYPE & engLocation->locationExtended.flags) && in reportEnginePositions()
3456 (LOC_OUTPUT_ENGINE_FUSED == engLocation->locationExtended.locOutputEngType)) { in reportEnginePositions()
3458 engLocation->locationExtended, in reportEnginePositions()
3464 convertLocationInfo(locationInfo[i], engLocation->locationExtended); in reportEnginePositions()
3467 engLocation->locationExtended, in reportEnginePositions()