Skip to main content

CompassCalibrationStatusEnum

enum class CompassCalibrationStatusEnum

Description: Compass calibration status

enum class CompassCalibrationStatusEnum(var value: Int) {


/**
* Magnetometer not in calibration
*/
NONE(0),

/**
* Step 1: Start the calibration and check the position of the aircraft: Hold the wing of the aircraft horizontally and rotate it around itself until the 4 LED lights flash green.
*/
STEP1(1),

/**
* Step 1: Start spinning
*/
ROTATE1(2),

/**
* Step 2: Start calibration: Make the aircraft vertical to the ground with the nose down, hold the wings with both hands, and rotate around itself until the 4 LED lights turn green and steady.
*/
STEP2(3),

/**
* Step 2: Start spinning
*/
ROTATE2(4),

/**
* Step 3: Check the position of the aircraft: rotate the aircraft sideways until the green light is on
*/
STEP3(8),

/**
* Step 3: Start spinning
*/
ROTATE3(9),

/**
* calculate
*/
CALCULATING(5),

/**
* Calibration failed.
*/
FAILED(6),

/**
* Calibration was successful.
*/
SUCCESSED(7),
UNKNOWN(0xff);

}