Skip to content Skip to sidebar Skip to footer

Get Gps Position On A Precise Time Interval

I'm trying to get gps postion as precise as posible at different interval ranges, i have few external gps, 10hz, 5hz and 1hz LocationManager locationManager = (LocationManage

Solution 1:

Dont look at the (system) timestamp when you received the location, look at the timestamp of the location itself, if it is delivered by GPS it should be exactly 1000ms (1/hz).

Gps receivers never deliver odd milliseconds, they are exactly at millisecond 1000, when using 1hz. use location.getTime(), and see yourself.

Solution 2:

There is no such thing as a precise time interval in a virtualized, multi-threaded application. You will get notifications when the OS gets around to running your thread, whether you use a timer or not.

Post a Comment for "Get Gps Position On A Precise Time Interval"