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.
DJICompassCalibrationStateVertical
Compass vertical calibration. The user should hold the aircraft vertically, with the nose pointed towards the ground, and rotate the aircraft 360 degrees.
DJICompassCalibrationStateSuccessful
Compass calibration succeeded.
DJICompassCalibrationStateFailed
Compass calibration failed. Make sure there are no magnets or metal objects near the compass and retry.
The Compass sensor is disconnected from the flight controller.
DJICompassSensorStateCalibrating
The Compass sensor is calibrating.
DJICompassSensorStateIdle
The Compass sensor is not in calibrating.
DJICompassSensorStateDataException
The Compass sensor has a data exception. Calibrate the compass and restart the aircraft. If afterwards the status still exists, you may need to contact DJI for further assistance.