添加默认航线文件
This commit is contained in:
parent
222f89a6c1
commit
38c1643bb0
|
|
@ -14,6 +14,10 @@ http {
|
|||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
location /waypoint/ {
|
||||
root /home/ruoyi/projects/ruoyi-ui;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /home/ruoyi/projects/ruoyi-ui;
|
||||
try_files $uri $uri/ /index.html;
|
||||
|
|
|
|||
|
|
@ -13,3 +13,5 @@ WORKDIR /home/ruoyi/projects/ruoyi-ui
|
|||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||
# 复制html文件到路径
|
||||
COPY ./html/dist /home/ruoyi/projects/ruoyi-ui
|
||||
# 复制waypoint文件到路径
|
||||
COPY ./waypoint/default.waypoints /home/ruoyi/projects/ruoyi-ui/waypoint/default.waypoints
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
QGC WPL 110
|
||||
0 1 0 16 0 0 0 0 31.8293035 118.7635779 100.000000 1
|
||||
1 0 3 22 0.00000000 0.00000000 0.00000000 0.00000000 31.82938020 118.76653610 100.000000 1
|
||||
|
|
@ -105,4 +105,13 @@ public interface RemoteAircraftFlyService
|
|||
*/
|
||||
@PostMapping("/drone/cover-close/{sn}")
|
||||
R<String> coverClose(@PathVariable("sn") String sn);
|
||||
|
||||
/**
|
||||
* 无人机返航接口
|
||||
*
|
||||
* @param sn 机场SN号
|
||||
* @return 返航响应
|
||||
*/
|
||||
@PostMapping("/drone/return-home/{sn}")
|
||||
R<String> returnHome(@PathVariable("sn") String sn);
|
||||
}
|
||||
Loading…
Reference in New Issue