functions to accumulate position for heading and speed, and to convert from mwl position to arte.  Not testet