FixSatellitePRNs Property
Returns the PRN numbers of the satellites used in the current fix.
Syntax
Visual Basic
object.FixSatellitePRNs
Visual C++
object.GetFixSatellitePRNs()
| Part
| Description |
| object |
An object expression that evaluates to a GPS ToolKit object. |
Example
Visual Basic
Dim fixSatellitePRNArray
'Get fix satellite PRNs
fixSatellitePRNArray = myGPSToolKit.FixSatellitePRNs
Visual C++
long arrayUBound;
VARIANT variantData;
_variant_t vtFixSatPRN, vtFixSatPRNArray;
short fixSatPRN;
// Get fix satellite PRNs
vtFixSatPRNArray = m_myGPSToolKit.GetFixSatellitePRNs();
SAFEARRAY *psa = vtFixSatPRNArray.parray;
// Get upper bound of array
SafeArrayGetUBound(psa, 1, &arrayUBound);
// Iterate through array
for(long i = 0; i <= arrayUBound; i++)
{
SafeArrayGetElement(psa, &i, &variantData);
vtFixSatPRN = variantData;
fixSatPRN = (short)vtFixSatPRN;
}
Remarks
None
Default
Empty (VT_EMPTY)
Returns
A VARIANT array (type VT_ARRAY/SAFEARRAY/VB Array) containing elements of VARIANTs
(type VT_I2/short) which holds the pseudo-random noise number (unique ID number) of
the satellites used in the current fix. If there is no fix, this variable will be empty (type VT_EMPTY).
Errors
None
See Also
GetSatelliteInfo method, SatelliteInViewPRNs property, NumSatellitesInView property, NumSatellitesInFix property, FixQuality property,
ModeIndicator property, SatelliteUpdate event
|