Aircraft control function enumeration class
enum ARMWarning
Description: The warning value of the aircraft.
public enum ARMWarning {
/**
* IMU loss.
*
* IMU error.
*/
IMU_LOSS(0x01, "IMU loss"),
/**
* Critical battery.
*
* Critical low battery.
*/
CRITICAL_BATTERY(0x02, "Critical battery"),
/**
* Baro loss.
*
* Barometer error.
*/
BARO_LOSS(0x03, "Baro loss"),
/**
* Red zone.
*
* No Fly Zone.
*/
RED_ZONE(0x04, "RedZone"),
/**
* IOC error.
*
* IOC error.
*/
IOC_ERROR(0x05, "IOC error"),
/**
* IOC_ERROR(0x05, "IOC error"),
*
* No GPS for beginners.
*/
BEGINNER_NO_GPS(0x06, "Beginner NO GPS"),
/**
* Disarm tilt over 45deg.
*
* Tilt over 45 degrees in ready state.
*/
DISARM_TILT_OVER_45DEG(0x07, "Disarm tilt over 45deg"),
/**
* Disarm IMU loss.
*
* IMU loss in ready state.
*/
DISARM_IMU_LOSS(0x08, " Disarm IMU loss"),
/**
* IMU is warming up.
*
* IMU is warming up.
*/
IMU_IS_WARMING_UP(0x09, "IMU is warming up"),
/**
* Magnetometer is calibrating.
*
* Magnetometer is calibrating.
*/
MAGNETOMETER_IS_CALIBRATING(0xA, "Magnetometer is calibrating"),
/**
* Multiple sensors error.
*
* Multi-sensor error.
*/
MULTIPLE_SENSORS_ERROR(0xB, "Multiple sensors error"),
/**
* Gimbal is not ready.
*
* Gimbal is not ready.
*/
GIMBAL_IS_NOT_READY(0xC, "Gimbal is not ready."),
/**
* Upgrade is ongoing.
*
* Upgrade is in progress.
*/
UPGRADE_IS_GOING(0xD, "upgrade is ongoing."),
/**
* attitude initialization.
*
* IMU needs to be calibrated.
*/
IMU_NEED_CALIBRATION(0xE, "imu need calibration."),
/**
* attitude initialization.
*
* Attitude initialization is in progress.
*/
ATTITUDE_INITIALIZATION(0xF, "attitude initialization."),
/**
* rtk is not ready
*
* RTK is not ready.
*/
RTK_NOT_READ(0x10, "rtk is not ready"),
/**
* firmware not activated.
*
* Firmware is not activated.
*/
FIRMWARE_NOT_ACTIVATE(0x11, "firmware is not activate"),
/**
* Normal state.
*
* Normal state.
*/
NORMAL(0x00, "normal"),
/**
* Unknown state.
*
* Unknown state.
*/
UNKNOWN(-1, "unknown");
};
enum MagnetometerState
Description: Magnetometer state.
public enum MagnetometerState {
/**
* Magnetic interference error, the aircraft is not able to keep the correct course (In ATTITUDE mode).
*
* Due to magnetic interference, the aircraft is not able to keep the correct course (in attitude mode).
*/
INTERFERENCE_ATTI(-1,"Magnetic interference error, the aircraft is not able to keep the correct course (In ATTITUDE mode)"),
/**
* No magnetic interference, the aircraft still keeps the correct course.
*
* The aircraft maintains the correct course as there is no magnetic interference.
*
* <p>(If GPS signal is in good condition, the aircraft can fly in GPS mode)
* (If the GPS signal is in good condition, the aircraft can fly in GPS mode.)</p>
*/
CORRECT(0,"No magnetic interference, the aircraft still keeps the correct course (If GPS signal is in good condition, the aircraft can fly in GPS mode)"),
/**
* Magnetic interference, the aircraft still keeps the correct course.
*
* The aircraft still maintains the correct course when there is magnetic interference.
*
* <p>(If GPS signal is in good condition, the aircraft can fly in GPS mode)
* (If the GPS signal is in good condition, the aircraft can fly in GPS mode.)</p>
*/
INTERFERENCE_CAN_KEEP_RIGHT_DIRECTION(1,"Experience magnetic interference, but the aircraft still keeps the correct course"),
/**
* Get continuous magnetic interference error, the aircraft is going to be unable to keep the correct course.
*
* Due to continuous magnetic interference, the aircraft is not able to keep the correct course.
*
* <p>(First leftTime warning. If GPS has enough satellites, the aircraft can fly in GPS mode)
* (First warning for time left. If the GPS has enough satellites, the aircraft can fly in GPS mode.) </p>
*/
INTERFERENCE_WARN_FIRST(2,"Experiencing continuous magnetic interference error, the aircraft is going to be unable to keep the correct course.(First leftTime warning. If GPS has enough satellites, the aircraft can fly in GPS mode)"),
/**
* Get continuous magnetic interference error, the aircraft is going to be unable to keep the correct course.
*
* Due to continuous magnetic interference, the aircraft is not able to keep the correct course.
*
* <p>(Second leftTime warning)
* (Second warning for time left.)</p>
*/
INTERFERENCE_WARN_SECOND(3, "Experiencing continuous magnetic interference error, the aircraft is going to be unable to keep the correct course (Second leftTime warning)"),
/**
* The magnetometer state is unknown.
*
* The magnetometer state is unknown.
*/
UNKNOWN(-2, "unknown");
};
enum CalibrateCompassStatus
Description: Corresponding status of the compass calibration step.
public enum CalibrateCompassStatus {
/**
* Compass calibration has not been triggered.
*
* Compass calibration has not been triggered.
*/
NORMAL (0),
/**
* Start the horizontal calibration.
*
* Start the horizontal calibration.
*/
START_HORIZONTAL (1),
/**
* Calculate the horizontal calibration.
*
* Calculate the horizontal calibration.
*/
HORIZONTAL_CALCULATE (2),
/**
* Start the vertical calibration.
*
* Start the vertical calibration.
*/
START_VERTICAL (3),
/**
* Calculate the vertical calibration.
*
* Calculate the vertical calibration.
*/
VERTICAL_CALCULATE (4),
/**
* Lateral rotate.
*
* Lateral rotation.
*/
LATERAL_ROTATE(9),
/**
* The calibration is successful.
*
* The calibration is successful.
*/
SUCCESS (5),
/**
* Failed to calibrate the compass.
*
Failed to calibrate the compass.
*/
FAILED (6),
/**
* No GPS to calibrate the compass.
*
* No GPS is available for calibrating the compass.
*/
NO_GPS (7),
/**
* TCalibration timeout.
*
* Calibration timed out.
*/
TIMEOUT(8),
/**
* Unknown status.
*
* Unknown state.
*/
UNKNOWN(-1);
};
enum LedPilotLamp
Description: LED light status.
public enum LedPilotLamp {
/**
* All lights are off.
*
* All lights are off.
*/
ALL_OFF(0),
/**
* The front LED lights are off, the rear LED lights are on.
*
* The front LED lights are off, and the rear LED lights are on.
*/
BACK_ONLY(1),
/**
* The front LED lights are on, the rear LED lights are off.
*
* The front LED lights are on, and the rear LED lights are off.
*/
FRONT_ONLY(2),
/**
* All lights are on.
*
* All lights are on.
*/
ALL_ON(3),
/**
* Photo-shooting led flicker.
*
* The photo shooting LED flickers.
*/
TAKE_PHOTO_GLINT(4),
/**
* Photo-shooting led flicker.
*
* The photo shooting LED flickers.
*/
TAKE_PHOTO_GLINT(4),
/**
* Recording led flicker.
*
* The video recording LED flickers.
*/
START_RECORD_GLINT(8),
/**
* The LED light state is unknown.
*
* The LED light state is unknown.
*/
UNKNOWN(-1);
};