Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 21:13, 1 May 2008.

Satellite coordinates

From Forum Nokia Wiki

The following code snippet demonstrates, how to obtain coordinates of the GPS satellites, that are used for determinate current device location. Class CPositionReader can be used for obtaining coordinates of the satellites. You should:

  • implement interface MPositionReaderObserver in your class
  • include CPositionReader* iReader as a class member
  • activate request:
iReader = CPositionReader :: NewL( this ); // new reader
iReader->ReadSatelliteInfo();   // request satellites info

And process results of reading:

void YourClass :: ReadingComplete( TPositionInfoBase& aPosInfo )
{
   TPositionSatelliteInfo& info = ( TPositionSatelliteInfo& )aPosInfo;
   for( TInt i = 0; i < info.NumSatellitesInView(); i++ )
   {
      TSatelliteData satData;
      info.GetSatelliteData( i, satData );
 
      if( satData.IsUsed() )
      {
         TReal azimuth   = aSatData.Azimuth(),
  	       elevation = aSatData.Elevation();	
         ... 
      }
   }
}

The coordinates of the satellites ( azimuth and elevation ) are presented in spherical coordinates system. This image demonstrates that indicate these coordinates:

Image:SphereCoords.PNG

And these formulas can be used for transform spherical coordinates to the coordinates in cartesian system:

x =  cos( Azimuth ) * cos( Elevation ) * Radius;
y =  sin( Azimuth ) * cos( Elevation ) * Radius;
Related Discussions
Thread Thread Starter Forum Replies Last Post
rotating a image using 3D api arical_dumi Mobile Java Media (Graphics & Sounds) 3 2005-12-19 10:25
6310i & PC Suite & bluetooth - all works!!! oil8420 Bluetooth Technology 50 2003-05-23 14:42
fill triangle /polygon subroutines parag27879 Mobile Java Media (Graphics & Sounds) 9 2004-09-09 03:26
Cached GPS data myuuuu General Symbian C++ 3 2008-04-22 21:28
Help on location API application! Hean Mobile Java General 1 2006-12-07 07:13
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX