×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Super Contributor
    Join Date
    Jul 2007
    Location
    Magnitogorsk, Russia
    Posts
    536

    TCourse.Course() always NaN ?

    Hi,

    I'm trying to read current speed and direction of the device.
    Class TCourse (from TPositionCourseInfo after finished async iPositioner.NotifyPositionUpdate(...) ) returns speed correctly, but function Course() always returns NaN...

    Does Anybody have similar problems?

  2. #2
    Registered User
    Join Date
    Dec 2008
    Posts
    11

    Re: TCourse.Course() always NaN ?

    Yes,

    I'm facing with same problems here.
    I tested my Nokia 6210 Navigator GPS and TCourse.Course() always return NaN.
    Does anyone know anything about it?

    I used the SDK sample code.

    Code:
    void CGpsController::PositionInfoUpdatedL(TPositionInfoBase& aPosInfo,
    		const TDesC& /*aModulename*/)
    	{
    	if (aPosInfo.PositionClassType() & EPositionSatelliteInfoClass)
    		{
    		TPositionSatelliteInfo* posInfo = static_cast<TPositionSatelliteInfo*> (&aPosInfo);
    		ProcessSatelliteInfoL(*posInfo);
    		}
    	else if (aPosInfo.PositionClassType() & EPositionInfoClass)
    		{
    		TPositionInfo* posInfo = static_cast<TPositionInfo*> (&aPosInfo);
    		ProcessPositionInfoL(*posInfo);
    		}
    	}
    
    void CGpsController::ProcessSatelliteInfoL(
    		const TPositionSatelliteInfo & aSatelliteInfo)
    	{
    	ProcessPositionInfoL(static_cast<TPositionInfo> (aSatelliteInfo));
    
    	aSatelliteInfo.GetCourse(iCourse);
    	iHorizontalDop = aSatelliteInfo.HorizontalDoP();
    
    	}
    
    void CGpsController::ProcessPositionInfoL(const TPositionInfo& aPositionInfo)
    	{
    	aPositionInfo.GetPosition(iPosition);
    	}
    []'s
    Fernando

Similar Threads

  1. positioning.position() doesn't work
    By Chiara81000 in forum Symbian
    Replies: 5
    Last Post: 2007-10-31, 18:49
  2. NaN handling bug in 1.1.3
    By eichin in forum Symbian
    Replies: 3
    Last Post: 2005-07-05, 11:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×