How can a GPS determine heading if it is stationary?? It calculates track when moving on the basis of "I was there then and here now so I must be going in this direction" Therefore how can it be used to compare against a magnetic compass.
Of course a compass swing is still required!