大疆社区

标题: 关于DjiGroundStation使用方法的问题 [打印本页]

作者: zhangjiapeng    时间: 2015-6-11
标题: 关于DjiGroundStation使用方法的问题
Class DJIGroundStation中有如下说明:
Step1 :openGroundStation() for opening the ground station so that the connection between app and drone could be set up.
Step2 :uploadGroundStationTask() for uploading the tasks which the customers required to do.
Step3 :startGroundStationTask() to send a signal for starting the tasks.
Step4 :pauseGroundStationTask() for pausing tasks from the ground station. All of the message will be saved until the resumeGroundStationTask() is invoked.
Step5 :resumeGroundStationTask() for resuming tasks.
Step6 :closeGroundStationTask() for terminating the tasks list.

Between Step4 and Step5, the developers could update the tasks list. However, the startWaypointIndex should be set up correctly and the new tasks list should be uploaded to the drone.
那是不是说飞机获得任务点第一次起飞后可以在空中暂停,然后更新任务点,然后继续执行新的任务?我想问一下有没有人验证过是否能够中途更改航点信息?
正确的执行顺序是怎样的?
是说 open ->addpoint->upload->takeoff->pause->removewaypoint->更新经纬度坐标->addpoint->upload->resume....?
我不清楚更新的时候是否要removewaypoint,还是说直接addpoint 然后upload就能覆盖之前的任务呢?




另外Class DJIFollowMeTarget  和Class DJIFollowMeInitializationInfo 是干什么的?是说能够跟随一个可以获取GPS位置信息的物体吗?具体用法是怎样的?
希望大家指点





作者: 1286775177@qq.c    时间: 2015-6-11
上传新任务会覆盖前面的任务,takeoff 是开始执行新任务。你应该是想做follow me  不过现在一般的手机gps精度不高,为了安全还是不要拿命开玩笑,要做的思路就是将获取到的手机GPS点加你现在的方向,经过计算得到你想要飞机去的位置然后上传任务执行任务。
作者: zhangjiapeng    时间: 2015-6-11
1286775177@qq.c 发表于 2015-6-11 11:23
上传新任务会覆盖前面的任务,takeoff 是开始执行新任务。你应该是想做follow me  不过现在一般的手机gps精 ...
谢谢回答。是想做follow me,请问知道followme class 下的那些方法具体的使用方法是怎样的?正确的顺序是什么?文档写的太简略,我自己搞不太清楚。另外,手机GPS的确精度不高,今天早上摔了一架精灵3

作者: 1286775177@qq.c    时间: 2015-6-11
open ->addpoint->upload->takeoff->飞到目标点->pause->更新经纬度坐标->addpoint->upload->takeoff->飞到目标点->pause->更新经纬度坐标->。。。    应该是这么个逻辑把。这个必须在星况好的地方,空旷才能玩把!
作者: lanyusea    时间: 2015-6-11
本帖最后由 lanyusea 于 2015-6-11 13:26 编辑
zhangjiapeng 发表于 2015-6-11 11:37
谢谢回答。是想做follow me,请问知道followme class 下的那些方法具体的使用方法是怎样的?正确的顺序是 ...
精灵3和inspire1是有follow me function的

http://dn-dev-dji-front.qbox.me/ ... /android/index.html

看逻辑应该是
openFollowMe -> 不停 sendFollowTargetGps -> cancelFollowMe

不过我也没有实际调用尝试过

作者: xyz2782350.163    时间: 2015-7-2
lanyusea 发表于 2015-6-11 13:23
精灵3和inspire1是有follow me function的

http://dn-dev-dji-front.qbox.me/ ... /android/index.html
但下载的demo是没有follow me 的,我是level-2.

作者: lanyusea    时间: 2015-7-2
xyz2782350.163 发表于 2015-7-2 16:16
但下载的demo是没有follow me 的,我是level-2.
demo 确实没有。

作者: lanyusea    时间: 2015-7-2
fyi,对于任何想要研究followmen功能的开发者:

SDK 中的followme功能暂未开放:http://bbs.dji.com/thread-15493-1-1.html


如果开放了我会回来更新帖子的
作者: xyz2782350.163    时间: 2015-7-2
lanyusea 发表于 2015-7-2 16:59
fyi,对于任何想要研究followmen功能的开发者:

SDK 中的followme功能暂未开放:http://bbs.dji.com/threa ...
我是北京的参赛队伍,由于禁飞原因,无法进行控制实验,现在无法应用demo让飞机飞起来,请问你们是如何解决的?


作者: lanyusea    时间: 2015-7-2
本帖最后由 lanyusea 于 2015-7-2 23:44 编辑
xyz2782350.163 发表于 2015-7-2 22:05
我是北京的参赛队伍,由于禁飞原因,无法进行控制实验,现在无法应用demo让飞机飞起来,请问你们是如何解 ...
禁飞的问题我记得需要给dji递交申请然后改固件解禁…


很久之前听人说的,记不清了,你可以发邮件给dji问一下


作者: xyz2782350.163    时间: 2015-7-3
lanyusea 发表于 2015-7-2 23:36
禁飞的问题我记得需要给dji递交申请然后改固件解禁…
恩,好的,谢啦!




欢迎光临 大疆社区 (https://bbs.dji.com/) Powered by Discuz! X3.2