Skip to main content

飞行器控制功能枚举类

enum  ARMWarning

描述: 无人机的告警值。

public enum ARMWarning { 
/**
* IMU loss.
*
* IMU异常。
*/
IMU_LOSS(0x01, "IMU loss"),

/**
* Critical battery.
*
* 电池严重低电量。
*/
CRITICAL_BATTERY(0x02, "Critical battery"),

/**
* Baro loss.
*
* 气压计异常。
*/
BARO_LOSS(0x03, "Baro loss"),

/**
* Red zone.
*
* 禁飞区
*/
RED_ZONE(0x04, "RedZone"),

/**
* IOC error.
*
* IOC error.
*/
IOC_ERROR(0x05, "IOC error"),

/**
* IOC_ERROR(0x05, "IOC error"),
*
* 新手无GPS。
*/
BEGINNER_NO_GPS(0x06, "Beginner NO GPS"),

/**
* Disarm tilt over 45deg.
*
* 就绪状态下倾斜超过45度。
*/
DISARM_TILT_OVER_45DEG(0x07, "Disarm tilt over 45deg"),

/**
* Disarm IMU loss.
*
* 就绪状态IMU损失。
*/
DISARM_IMU_LOSS(0x08, " Disarm IMU loss"),

/**
* IMU is warming up.
*
* IMU正在预热。
*/
IMU_IS_WARMING_UP(0x09, "IMU is warming up"),

/**
* Magnetometer is calibrating.
*
* 磁力计正在校准。
*/
MAGNETOMETER_IS_CALIBRATING(0xA, "Magnetometer is calibrating"),

/**
* Multiple sensors error.
*
* 多传感器故障。
*/
MULTIPLE_SENSORS_ERROR(0xB, "Multiple sensors error"),

/**
* Gimbal is not ready.
*
* 云台未准备好。
*/
GIMBAL_IS_NOT_READY(0xC, "Gimbal is not ready."),

/**
* Upgrade is ongoing.
*
* 升级进行中。
*/
UPGRADE_IS_GOING(0xD, "upgrade is ongoing."),

/**
* attitude initialization.
*
* IMU需要校准
*/
IMU_NEED_CALIBRATION(0xE, "imu need calibration."),

/**
* attitude initialization.
*
* 姿态初始化中
*/
ATTITUDE_INITIALIZATION(0xF, "attitude initialization."),

/**
* rtk is not ready
*
* RTK 未就绪
*/
RTK_NOT_READ(0x10, "rtk is not ready"),

/**
* firmware not activated.
*
* 固件未激活
*/
FIRMWARE_NOT_ACTIVATE(0x11, "firmware is not activate"),

/**
* Normal state.
*
* 正常状态。
*/
NORMAL(0x00, "normal"),

/**
* Unknown state.
*
* 未知状态。
*/
UNKNOWN(-1, "unknown");
};

enum  MagnetometerState

描述: 磁力计的状态。

public enum MagnetometerState { 
/**
* Magnetic interference error, 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.
*
* 由于没有磁干扰,无人机仍保持正确的航向。
*
* <p>(If GPS signal is in good condition, the aircraft can fly in GPS mode)
* (如果GPS信号处于良好状态,无人机可在GPS模式下飞行)</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.
*
* 磁干扰下,无人机仍保持正确的航向。
*
* <p>(If GPS signal is in good condition, the aircraft can fly in GPS mode)
*(如果GPS信号处于良好状态,无人机可在GPS模式下飞行)</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.
*
* 由于连续磁干扰误差,无人机将无法保持正确的航向。
*
* <p>(First leftTime warning. If GPS has enough satellites, the aircraft can fly in GPS mode)
*(首次剩余时间告警。 如果GPS有足够的卫星,无人机可以在GPS模式下飞行。</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.
*
* 由于连续磁干扰误差,无人机将无法保持正确的航向。
*
* <p>(Second leftTime warning)
*(第二次次剩余时间告警)</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.
*
* 磁力计状态未知。
*/
UNKNOWN(-2, "unknown");
};

enum  CalibrateCompassStatus

描述: 指南针校准步骤的对应状态。

public enum CalibrateCompassStatus { 
/**
* Compass calibration has not been triggered.
*
* 指南针校准未触发。
*/
NORMAL (0),

/**
* Start the horizontal calibration.
*
* 开始水平校准。
*/
START_HORIZONTAL (1),

/**
* Calculate the horizontal calibration.
*
* 计算水平校准。
*/
HORIZONTAL_CALCULATE (2),

/**
* Start the vertical calibration.
*
* 开始垂直校准。
*/
START_VERTICAL (3),

/**
* Calculate the vertical calibration.
*
* 计算垂直校准。
*/
VERTICAL_CALCULATE (4),

/**
* Lateral rotate.
*
* 侧向旋转。
*/
LATERAL_ROTATE(9),

/**
* The calibration is successful.
*
* 校准成功。
*/
SUCCESS (5),

/**
* Failed to calibrate the compass.
*
* 指南针校准失败。
*/
FAILED (6),

/**
* No GPS to calibrate the compass.
*
* 指南针校准无GPS。
*/
NO_GPS (7),

/**
* TCalibration timeout.
*
* 校准超时。
*/
TIMEOUT(8),

/**
* Unknown status.
*
* 未知状态。
*/
UNKNOWN(-1);

};

enum  LedPilotLamp

描述: LED灯状态。

public enum LedPilotLamp { 
/**
* All lights are off.
*
* 所有灯已关闭。
*/
ALL_OFF(0),

/**
* The front LED lights are off, the rear LED lights are on.
*
* 前LED灯关闭,后LED灯打开。
*/
BACK_ONLY(1),

/**
* The front LED lights are on, the rear LED lights are off.
*
* 前LED灯打开,后LED灯关闭。
*/
FRONT_ONLY(2),

/**
* All lights are on.
*
* 所有灯已打开。
*/
ALL_ON(3),

/**
* Photo-shooting led flicker.
*
* 摄影补光灯闪烁。
*/
TAKE_PHOTO_GLINT(4),

/**
* Photo-shooting led flicker.
*
* 摄影补光灯闪烁。
*/
TAKE_PHOTO_GLINT(4),

/**
* Recording led flicker.
*
* 视频录制补光灯闪烁。
*/
START_RECORD_GLINT(8),

/**
* The LED light state is unknown.
*
* LED灯状态未知。
*/
UNKNOWN(-1);
};