I have a gps system that fails to report speed and direction about 1 in 5 times. The positions average about 2-3 minutes apart butI still get the lat/lon.
I think that I can infer the probable speed and direction by looking at how far the unit traveled and where the unit is, in relation to the last fix. I am writing in VBA.
Does someone know a easy way to get bearing between 2 waypoints?
My program will probably look like this.
Check to se if position fix reports speed and direction at zero.
Is the fix less than 10 minutes since previous fix (accuracy of inference issue)
Is the fix more than 1 mile from the previous fix. (The unit may actually be stopped)
Then the unit is probably in motion or at the end of a route and I will calculate the time between fixes and the distance between fixes and devide out the speed. I will also get the bearing of the current fix from the previous fix and infer a direction.
Otherwise if the unit is close to where it was at the previous fix then I will guess that it is actually stopped.
Can someone help me with the bearing issue or is there a an easy Mappoint funtion that I am missing?