This class provides compass status information and compass calibration methods. Products with multiple compasses (like the Phantom 4) have their compass state fused into one compass class for simplicity.
Represents the heading, in degrees. True North is 0 degrees, positive heading is East of North, and negative heading is West of North. Heading bounds are [-180, 180].
Compass horizontal calibration. The user should hold the aircraft horizontally and rotate it 360 degrees.
VERTICAL
Compass vertical calibration. The user should hold the aircraft vertically, with the nose pointed towards the ground, and rotate the aircraft 360 degrees.
SUCCESSFUL
Compass calibration succeeded.
FAILED
Compass calibration failed. Make sure there are no magnets or metal objects near the compass and retry.