Okay so I with my limited experience of event driven programming, managed to enter some code from a tutorial on MIT app Inventor which polls the orientation sensor of my mobile and outputs the points of the compass.
To recap, here are the three steps I am attempting to accomplish:
1. Obtain a weighted average GPS reading from a stationary GPS on my plane table.
2. Calculate bearing and distance into Cartesian points
3. Plot the derived points into a CAD system.