添加控制指令API

This commit is contained in:
孙小云 2026-02-28 14:52:00 +08:00
parent 249dc49dc5
commit 7e837dff3f
2 changed files with 59 additions and 1 deletions

View File

@ -46,4 +46,17 @@ public class DroneFlightControlRequest implements Serializable {
/** 消息ID */
@Schema(description = "消息ID", example = "9056")
private Long messageID;
/** 扩展值(用于云台控制等) */
@Schema(description = "扩展值(用于云台控制等)", example = "90")
private String evalue;
/** 值(用于云台控制等) */
@Schema(description = "值(用于云台控制等)", example = "04")
private String value;
//专门用于云台变焦命令的用于指定相机的灯光模式
/** 灯光模式(用于相机控制) */
@Schema(description = "灯光模式(用于相机控制)", example = "visibleLight")
private String lightMode;
}

View File

@ -56,7 +56,52 @@ public enum DroneCommandEnum {
/**
* 急停
*/
EMERGENCY_STOP("EMERGENCY_STOP", "急停");
EMERGENCY_STOP("EMERGENCY_STOP", "急停"),
/**
* 切换可见光
*/
SWITCH_VISIBLE_LIGHT("SWITCH_VISIBLE_LIGHT", "切换可见光"),
/**
* 云台变焦
*/
GIMBAL_ZOOM("GIMBAL_ZOOM", "云台变焦"),
/**
* 切换红外
*/
SWITCH_IR("SWITCH_IR", "切换红外"),
/**
* 切换广角
*/
SWITCH_WIDE_ANGLE("SWITCH_WIDE_ANGLE", "切换广角"),
/**
* 云台右移
*/
GIMBAL_MOVE_RIGHT("GIMBAL_MOVE_RIGHT", "云台右移"),
/**
* 云台左移
*/
GIMBAL_MOVE_LEFT("GIMBAL_MOVE_LEFT", "云台左移"),
/**
* 云台俯仰
*/
GIMBAL_PITCH_UP("GIMBAL_PITCH_UP", "云台俯仰(上)"),
/**
* 云台俯仰
*/
GIMBAL_PITCH_DOWN("GIMBAL_PITCH_DOWN", "云台俯仰(下)"),
/**
* 云台复位
*/
GIMBAL_RESET("GIMBAL_RESET", "云台复位");
private final String code;
private final String description;