After doing alot of nmea stuff for marine navagation it sounds like you are getting the heading from the gps not the fluxgate compass. The gps heading is only calculated when the receiver is moving. The compass outputs headings continually, at least on marine gear.

Ralph DiMola
MIS Director Evergreen Information Services
[email protected]

-----Original message-----
From: Thomas McGrath III <[email protected]>
To: How to use LiveCode <[email protected]>
Sent: Sat, Feb 11, 2012 02:27:23 GMT+00:00
Subject: iphoneCurrentHeading() gotcha

This is a heads up on using iphoneCurrentHeading() and its returned timestamp.

I struggled with this for many hours. It turns out that the heading and the timeStamp from the iphoneCurrentHeading() only return the heading and time from 'when' the last location was last changed. It returns the last known timestamp and heading and not a new heading(same heading) and a new timestamp. Calling it repeatedly returns the same results, which makes sense for the heading (since it has not changed so it is not returning a new heading) but I thought repeated calling the currentheading would give me a new timestamp from the new call to it. Not so.


-- Tom McGrath III
http://lazyriver.on-rev.com
[email protected]


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to