| | |
| | | package com.ard.tianyu.service; |
| | | |
| | | import com.ard.tianyu.model.receiver.AccessTokenReceiver; |
| | | import com.ard.tianyu.model.receiver.BoxReceiver; |
| | | import com.ard.tianyu.model.dto.BoxHistoryDTO; |
| | | import com.ard.tianyu.model.dto.BoxPhotosDTO; |
| | | import com.ard.tianyu.model.dto.BoxSettingsDTO; |
| | | import com.ard.tianyu.model.dto.camera.*; |
| | | import com.ard.tianyu.model.dto.control.AbsAngleControlDTO; |
| | | import com.ard.tianyu.model.dto.control.AngleControlDTO; |
| | | import com.ard.tianyu.model.dto.control.SpeedControlDTO; |
| | | import com.ard.tianyu.model.dto.signal.SignalInfo; |
| | | import com.ard.tianyu.model.dto.state.UavState; |
| | | import com.ard.tianyu.model.dto.telemetry.TelemetryData; |
| | | import com.ard.tianyu.model.receiver.*; |
| | | import com.ard.tianyu.netty.command.BaseCmd; |
| | | import com.dtflys.forest.annotation.Var; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | * 获取云盒列表 |
| | | * @return |
| | | */ |
| | | List<BoxReceiver> getBoxList(); |
| | | List<BoxInfoReceiver> getBoxList(); |
| | | |
| | | /** |
| | | * 获取直播地址 |
| | | * @return |
| | | */ |
| | | BoxStreamUrlReceiver getBoxLiveUrl(@Var("boxSn") String boxSn); |
| | | |
| | | /** |
| | | * 获取飞行历史 |
| | | * @return |
| | | */ |
| | | List<BoxHistoryReceiver> getBoxHistory(BoxHistoryDTO boxHistoryDTO); |
| | | |
| | | /** |
| | | * 获取盒子图片 |
| | | * @return |
| | | */ |
| | | List<BoxPhotosReceiver> getBoxPhotos(BoxPhotosDTO boxPhotosDTO); |
| | | |
| | | /** |
| | | * 修改云盒设置 |
| | | * @return |
| | | */ |
| | | Boolean updateBoxSettings(BoxSettingsDTO boxSettingsDTO); |
| | | |
| | | /** |
| | | * 注册 |
| | | */ |
| | | void registerMessage(); |
| | | |
| | | /** |
| | | * 云台转动(基于角度) |
| | | */ |
| | | void angleControl(AngleControlDTO angleControlDto); |
| | | |
| | | /** |
| | | * 云台绝对值控制(基于角度) |
| | | */ |
| | | void absAngleControl(AbsAngleControlDTO absAngleControlDto); |
| | | |
| | | /** |
| | | * 云台转动(基于速度) |
| | | */ |
| | | void speedControl(SpeedControlDTO speedControlDto); |
| | | |
| | | /** |
| | | * 设置相机模式 |
| | | */ |
| | | void updateCameraMode(CameraModeDTO cameraModeDTO); |
| | | |
| | | /** |
| | | * 拍照 |
| | | */ |
| | | void capturePic(CapturePicDTO capturePicDto); |
| | | |
| | | /** |
| | | * 录像 |
| | | */ |
| | | void record(RecordDTO recordDto); |
| | | |
| | | /** |
| | | * 变倍 |
| | | */ |
| | | void zoom(ZoomDTO zoomDTO); |
| | | |
| | | /** |
| | | * 变倍到指定倍数 |
| | | */ |
| | | void zoomToLevel(ZoomToLevelDTO zoomToLevelDTO); |
| | | |
| | | /** |
| | | * 切换摄像头 |
| | | */ |
| | | void switchCamera(SwitchCameraDTO switchCameraDTO); |
| | | |
| | | /** |
| | | * 切换视频源 |
| | | */ |
| | | void switchSource(SwitchSourceDTO switchSourceDTO); |
| | | |
| | | /** |
| | | * 打开或关闭照片回传 |
| | | */ |
| | | void photoReturnToggle(PhotoReturnToggleDTO photoReturnToggleDTO); |
| | | |
| | | /** |
| | | * 获取无人机状态 |
| | | */ |
| | | UavState getUavState(String boxSn); |
| | | |
| | | /** |
| | | * 获取无人机遥测 |
| | | */ |
| | | TelemetryData getUavTelemetryData(String boxSn); |
| | | |
| | | /** |
| | | * 获取信道质量遥测 |
| | | */ |
| | | SignalInfo getSignalInfo(String boxSn); |
| | | |
| | | /** |
| | | * 解析天宇服务端发来的消息 |
| | | */ |
| | | void processMessage(String key, BaseCmd tyMessage); |
| | | } |