TPositionGpsMeasurementInfo Class Reference

class TPositionGpsMeasurementInfo : public TPositionInfoBase

Class TPositionGpsMeasurementInfo is used to hold the complete set of satellite measurement data.

Inherits from

Public Member Functions
TPositionGpsMeasurementInfo()
IMPORT_C TIntAppendMeasurementData(const TPositionGpsMeasurementData &)
IMPORT_C voidClearMeasurementData()
IMPORT_C TIntGetGpsTimingData(TGpsTimingMeasurementData &)
IMPORT_C TIntGetMeasurementData(TUint, TPositionGpsMeasurementData &)
IMPORT_C TIntGpsTimeOfWeek()
IMPORT_C TIntNumMeasurements()
IMPORT_C TBoolPositionCalculationPossible()
IMPORT_C voidSetGpsTimeOfWeek(TInt)
IMPORT_C voidSetGpsTimingData(const TGpsTimingMeasurementData &)
IMPORT_C voidSetPositionCalculationPossible(TBool)
Inherited Functions
TPositionClassTypeBase::PositionClassSize()const
TPositionClassTypeBase::PositionClassType()const
TPositionClassTypeBase::TPositionClassTypeBase()
TPositionInfoBase::ModuleId()const
TPositionInfoBase::PositionMode()const
TPositionInfoBase::PositionModeReason()const
TPositionInfoBase::SetModuleId(TPositionModuleId)
TPositionInfoBase::SetPositionMode(TPositionModuleInfo::TTechnologyType)
TPositionInfoBase::SetPositionModeReason(TPositionModeReason)
TPositionInfoBase::SetUpdateType(TPositionUpdateType)
TPositionInfoBase::TPositionInfoBase()
TPositionInfoBase::UpdateType()const
Protected Attributes
TInt iCalcPossible
TInt iGpsTimeOfWeek
TGpsTimingMeasurementData iGpsTimingMeasurementData
TFixedArray< TPositionGpsMeasurementData, KPositionGpsMaxMeasurements >iMeasurementData
TUint iNumMeasurements
Inherited Attributes
TPositionClassTypeBase::iPosClassSize
TPositionClassTypeBase::iPosClassType
TPositionInfoBase::iModuleId
TPositionInfoBase::iPositionMode
TPositionInfoBase::iPositionModeReason
TPositionInfoBase::iUpdateType

Constructor & Destructor Documentation

TPositionGpsMeasurementInfo()

IMPORT_CTPositionGpsMeasurementInfo()

Member Functions Documentation

AppendMeasurementData(const TPositionGpsMeasurementData &)

IMPORT_C TIntAppendMeasurementData(const TPositionGpsMeasurementData &aMeasurementData)

Adds the supplied measurement data to the current list NumMeasurements GetMeasurementData

Parameters

const TPositionGpsMeasurementData & aMeasurementDataThe data to append

ClearMeasurementData()

IMPORT_C voidClearMeasurementData()

Remove all satellite measurement data NumMeasurements GetMeasurementData

GetGpsTimingData(TGpsTimingMeasurementData &)

IMPORT_C TIntGetGpsTimingData(TGpsTimingMeasurementData &aGpsTimingData)const

Populates aGpsTimingData with the GPS Timing Measurement Data

Parameters

TGpsTimingMeasurementData & aGpsTimingData

GetMeasurementData(TUint, TPositionGpsMeasurementData &)

IMPORT_C TIntGetMeasurementData(TUintaIndex,
TPositionGpsMeasurementData &aMeasurementData
)const

Parameters

TUint aIndexThe index of the measurement data requested. An index of zero specifies the first set of measurement data
TPositionGpsMeasurementData & aMeasurementDataHolds the returned measurement data

GpsTimeOfWeek()

IMPORT_C TIntGpsTimeOfWeek()const

Returns the GPS Time of Week in milliseconds

Note that RRC and RRLP encode this using a different algorithm in their respective GPS Measurement Position Response message elements.

For RRC the actual value in milliseconds is sent, in the range 0 to 604800000.

For RRLP the value sent is a 24 bit representation of actual GPS TOW in ms in the range 0 to 14399999. This value should be set to (GpsTimeOfWeek() mod 14400000), ie the remainder of division by 14400000.

SetGpsTimeOfWeek

NumMeasurements()

IMPORT_C TIntNumMeasurements()const

The number of measurements held GetMeasurementData

PositionCalculationPossible()

IMPORT_C TBoolPositionCalculationPossible()const

Returns true if the measurement info is complete enough so it should be possible to calculate a position.

SetGpsTimeOfWeek(TInt)

IMPORT_C voidSetGpsTimeOfWeek(TIntaGpsTimeOfWeek)

Sets the GPS Time of Week

The Time of Week in milliseconds, with no conversion specific to the location protocol in use (RRC, RRLP or other).

GpsTimeOfWeek

Parameters

TInt aGpsTimeOfWeekThe GPS Time of Week to assign

SetGpsTimingData(const TGpsTimingMeasurementData &)

IMPORT_C voidSetGpsTimingData(const TGpsTimingMeasurementData &aGpsTimingData)

Sets the GPS Timing Measurement Data

Parameters

const TGpsTimingMeasurementData & aGpsTimingDatathe populated GPS Timing Measurement Data to be set

SetPositionCalculationPossible(TBool)

IMPORT_C voidSetPositionCalculationPossible(TBoolaCalcPossible)

The indicator is typically set by an AGPS positioning module and, if set to true, instructs the Location subsystem to complete Terminal Assisted positioning without waiting for a positioning timeout to expire.

Parameters

TBool aCalcPossibleThe calculation indicator.

Member Data Documentation

TInt iCalcPossible

TInt iCalcPossible[protected]

Indicates if the measurement information is complete enough to calculate a position

TInt iGpsTimeOfWeek

TInt iGpsTimeOfWeek[protected]

Gps Time of Week in milli seconds

TGpsTimingMeasurementData iGpsTimingMeasurementData

TGpsTimingMeasurementData iGpsTimingMeasurementData[protected]

GPS/Network Timing Measurements

TFixedArray< TPositionGpsMeasurementData, KPositionGpsMaxMeasurements > iMeasurementData

TFixedArray< TPositionGpsMeasurementData, KPositionGpsMaxMeasurements >iMeasurementData[protected]

The satellite measurements

TUint iNumMeasurements

TUint iNumMeasurements[protected]

The number of measurements