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

MAP rotation problem

Thu Sep 15, 2005 3:59 pm


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
       If dLastRotation <> 0 Then
           Map1.Rotation = dLastRotation
       End If
   End If
End Sub

Could someone please help me out?



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
Posts: 15426
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:


Franson Support

Return to “GpsTools”