Compass

This modification stores current magnetic compass heading with track- and waypoints, allows to export those values to the gpx file in either the cmt field or in a <compass> field within <extensions> (configurable by user). It also displays the current compass reading in the logging gui.

There is one hunk in GpsStatusRecord that is not directly related to this: in onGpsStatusChanged, I look at how many of the visible satellites are actually being used in the fix to determine the signal indicator and in addition if this number goes to zero, the buttons are disabled (since location might not be the current one anymore). I don't know if that fits your philosopy. One probably also want's to disable the hardware button functions, when buttons are disabled. However I did not manage to figure out where to do that...

Hope you like this.