dragonsteve
Posts: 16
Joined: Thu Sep 15, 2005 3:50 pm

MAP rotation problem

Thu Sep 15, 2005 3:59 pm

Hi,

i am using the heading from the Movement to rotate my map.
It works fine.
But when I don't get a GPSFix, I think that I don't get a GPSfix, my map doesn't stay in the correct rotation.
It jumps back to the first map state. (North)
I don't use the events but work with a timer(600) and check the gpsfix and sats.

My code is as follows:

Code: Select all

Private Sub checkFix()
   Dim objPosition As GpsToolsNET.Position
   Dim objFix As GpsToolsNET.GpsFix
   Dim objMovement As GpsToolsNET.Movement
   objFix = objParser.GetGpsFix(0, 2)

   If Not objFix Is Nothing Then
       objPosition = objFix.Position
       Map1.Position = objPosition
       objMovement = objParser.GetMovement(250)

       If Not objMovement Is Nothing Then
           Map1.Rotation = objMovement.Heading
           dLastRotation = objMovement.Heading
       End If
       Map1.Update()
   Else
       If dLastRotation <> 0 Then
           Map1.Rotation = dLastRotation
       End If
   End If
End Sub



Could someone please help me out?

Regards,

Steve

dragonsteve
Posts: 16
Joined: Thu Sep 15, 2005 3:50 pm

RE: MAP rotation problem

Wed Sep 21, 2005 1:46 pm

Hi, is there nobody here on this forum that could help me?????

User avatar
johan
GpsGate
Posts: 15342
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: MAP rotation problem

Wed Sep 21, 2005 4:59 pm

Maybe the GPS says it is traveling north as it loses the fix. You can check the GPS status by using the ComStatus class:
http://franson.com/gpstools/reference_manual.asp?comp=tools&class=ComStatus&platform=net

Regards,
Johan

Franson Support

Return to “GpsTools”