Traditionally on many devices, vehicles and phones, calibration of a digital compass was done by doing figure 8s several times.
Note: Some had a calibration mode to use first.
A quick Google search finds Volvo saying a couple circles under 6 mph (10 kph). Then, once it starts changing, a...