liusuyi
2024-10-25 75902fb9d5b27a440d14308ccca3c3cff32167bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.ard.tianyu.service;
 
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.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.BaseCommand;
import com.dtflys.forest.annotation.Var;
 
import java.util.List;
 
/**
 * ITyService
 *
 * @author liusuyi
 * @date 2024年10月22日8:36
 **/
public interface ITyService {
 
    /**
     * 获取天宇token信息
     * @return
     */
    AccessTokenReceiver getAccessToken();
 
 
    /**
     * 获取云盒列表
     * @return
     */
    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 controlAngle(String boxSn,Integer actionId,Integer rotationAngle) ;
 
    /**
     * 获取无人机状态
     */
    UavState getUavState(String boxSn);
 
    /**
     * 获取无人机遥测
     */
    TelemetryData getUavTelemetryData(String boxSn);
 
    /**
     * 获取信道质量遥测
     */
    SignalInfo getSignalInfo(String boxSn);
    /**
     * 解析天宇服务端发来的消息
     */
    void processMessage(String key, BaseCommand tyMessage);
}