GPS Question

  • Thread starter Thread starter Ronder Magden
  • Start date Start date
R

Ronder Magden

Hello all

I'm using the GPS Sample from the SDK, but I wonder what are the differences
between these variables:

GetSatellitesInSolution
GetSatellitesInView
SatelliteCount

ok, InView is logic, but what is the difference between SatellitesInSolution
and SatelliteCount?

Many Thanks

Ronder Magden
 
Looking at the code it looks as though GetSatellitesInSolution() figures out
which satalites from the pool of satallites (total satallites) are actually
being used at any one time.

This is the method here:

public Satellite[] GetSatellitesInSolution()
{
Satellite[] inViewSatellites = GetSatellitesInView();
ArrayList list = new ArrayList();
for (int index = 0; index < dwSatelliteCount; index++)
{
Satellite found = null;
for (int viewIndex = 0; viewIndex < inViewSatellites.Length
&& found == null; viewIndex++)
{
if (rgdwSatellitesUsedPRNs[index] ==
inViewSatellites[viewIndex].Id)
{
found = inViewSatellites[viewIndex];
list.Add(found);
}
}
}

return (Satellite[])list.ToArray(typeof(Satellite));
}

SatalliteCount just gives the total number of satallites known but not
nessessarily being used.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top