Demo示例是否适用于对接大疆机场

Comments

12 comments

  • Boerma

    可以用于对接机场

    0
    Comment actions Permalink
  • ll

    谢谢。再咨询下api的websocket用的端口和项目端口是用同一个吗?都是6789吗?

    0
    Comment actions Permalink
  • DJI Developer Support
    服务端websocket接口和服务端http接口用的是同一个端口,默认都是6789。
    0
    Comment actions Permalink
  • ll

    谢谢。我现在是在内网的一台服务器部署的demo,然后在docker-compose.yml把api的6789映射成7006。

    然后在前置机把这台内网的7006端口暴露出来,配置nginx.conf是这样配置的。

    前端还是报错

    reconnecting-websocket-mjs.js:517 WebSocket connection to 'ws://117.163.32.97:7006/api/v1/ws?x-auth-token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ3b3Jrc3BhY2VfaWQiOiJlM2RlYTBmNS0zN2YyLTRkNzktYWU1OC00OTBhZjMyMjgwNjkiLCJzdWIiOiJDbG91ZEFwaVNhbXBsZSIsInVzZXJfdHlwZSI6IjEiLCJuYmYiOjE2ODIzOTI3ODgsImxvZyI6IkxvZ2dlcltjb20uZGppLnNhbXBsZS5jb21tb24ubW9kZWwuQ3VzdG9tQ2xhaW1dIiwiaXNzIjoiREpJIiwiaWQiOiJhMTU1OWU3Yy04ZGQ4LTQ3ODAtYjk1Mi0xMDBjYzQ3OTdkYTIiLCJleHAiOjE3Njg3OTI3ODgsImlhdCI6MTY4MjM5Mjc4OCwidXNlcm5hbWUiOiJhZG1pblBDIn0.ikTzfHs8ddI3WoHhGGPyyTPw62pCwfno4FUwKigwEuc' failed: 

    前端配置

    0
    Comment actions Permalink
  • DJI Developer Support
    在内网测试websocket能否连接上。内网可以连接上,就需要您排查nginx及网络环境的配置。
    0
    Comment actions Permalink
  • ll

    谢谢。请问demo有没有指令飞行的功能?

    0
    Comment actions Permalink
  • DJI Developer Support
    官网已经发布了最新版本的demo,支持飞行指令功能
    0
    Comment actions Permalink
  • ll

    谢谢!我部署的demo版本是1.3.2。好像没看有飞行指令功能呢?

    demo上不能打点创建航线吗?是需要遥控器上创建航线然后上传吗?

    0
    Comment actions Permalink
  • DJI Developer Support
    指令飞行功能在demo的1.4.0分支。 demo不能创建航线文件。创建航线文件可以使用遥控器或者使用司空2创建,也可以根据航线文件格式进行创建航线文件。
    0
    Comment actions Permalink
  • ll

    1.4的包在哪下载?我在你们上云的文档的docker部署下载的就是1.3.2。

    0
    Comment actions Permalink
  • ll

    是刚更新的吗?刚下载就是1.4....

    0
    Comment actions Permalink
  • DJI Developer Support
    上云API 1.4.0版本支持指令飞行,1.4.0版本的发布时间为:2023-04-25
    0
    Comment actions Permalink

Please sign in to leave a comment.