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?