Im trying to make my own logger for map monkey. Everything seems to work fine, but when the GPS doesnt have a lock (ie. in a tunnel) I'm getting this error in MapMonkey:

Error Details:

Number: 13
Description: Type mismatch
Source: Compass_Heading
Version: 1.1.348
HelpContext: 1000013
LastDllError: 0

There is something wrong with the CompassHeading.

I tried the function .Heading but im receiving 0.

If anyone can help me getting the Heading from MapMonkey i would really appreciate it.