大疆社区

标题: 如何获取悬停高度 [打印本页]

作者: cq674350529    时间: 2015-9-16
标题: 如何获取悬停高度
DJI GO中,显示飞行参数时有一个悬停高度,如图所示
[attach]54784[/attach]

问一下,这个数据该如何获取呢?
谢谢!

作者: DJI-Shirley    时间: 2015-9-16
Hi, 在android mobile SDK里可以调用DJIMcuUpdateStateCallBack(),重写onResult函数去获取altitude噢~

作者: cq674350529    时间: 2015-9-16
<div class="quote"><blockquote><font size="2"><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&goto=findpost&pid=273849&ptid=25697" target="_blank"><font color="#999999">DJI-Shirley 发表于 2015-9-16 10:27</font></a></font>
Hi, 在android mobile SDK里可以调用DJIMcuUpdateStateCallBack(),重写onResult函数去获取altitude噢~
...</blockquote></div>谢谢您的回答。我试过官方提供的DEMO,按照您说的方法去获取altitude,实际测试时返回值一直为0,但是用DJI GO测试时,那个悬停高度是有值的,而且还比较精确。所以我觉得那个参数和altitude是不一样的。
作者: DJI-Shirley    时间: 2015-9-16
<div class="quote"><blockquote><font size="2"><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&goto=findpost&pid=273873&ptid=25697" target="_blank"><font color="#999999">cq674350529 发表于 2015-9-16 10:33</font></a></font>
谢谢您的回答。我试过官方提供的DEMO,按照您说的方法去获取altitude,实际测试时返回值一直为0,但是用D ...</blockquote></div>你的机型是什么?

作者: cq674350529    时间: 2015-9-16
<div class="quote"><blockquote><font size="2"><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&goto=findpost&pid=273935&ptid=25697" target="_blank"><font color="#999999">DJI-Shirley 发表于 2015-9-16 10:55</font></a></font>
你的机型是什么?</blockquote></div>Phantom 3 Professional

作者: DJI-Shirley    时间: 2015-9-16
<div class="quote"><blockquote><font size="2"><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&goto=findpost&pid=273959&ptid=25697" target="_blank"><font color="#999999">cq674350529 发表于 2015-9-16 11:00</font></a></font>
Phantom 3 Professional</blockquote></div>连接模拟器的时候显示的是0吗? 这个情况是实飞的时候发生的吗?

作者: cq674350529    时间: 2015-9-16
<div class="quote"><blockquote><font size="2"><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&goto=findpost&pid=274179&ptid=25697" target="_blank"><font color="#999999">DJI-Shirley 发表于 2015-9-16 13:07</font></a></font>
连接模拟器的时候显示的是0吗? 这个情况是实飞的时候发生的吗?</blockquote></div>没有用模拟器,恩,实飞的时候altitude显示为0,但是使用DJI GO则显示有较精确的值。<font size="2">Phantom 3 Professional底部有一个小摄像头,我怀疑是通过这个测得的悬停高度,但是没有找到相关的API。</font>
作者: DJI-Shirley    时间: 2015-9-16
<div class="quote"><blockquote><font size="2"><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&goto=findpost&pid=274189&ptid=25697" target="_blank"><font color="#999999">cq674350529 发表于 2015-9-16 13:21</font></a></font>
没有用模拟器,恩,实飞的时候altitude显示为0,但是使用DJI GO则显示有较精确的值。Phantom 3 Professio ...</blockquote></div>好的~ 我们要先确认一下才能回复你噢~  

作者: DJI-Shirley    时间: 2015-9-17
<div class="quote"><blockquote><font size="2"><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&goto=findpost&pid=274189&ptid=25697" target="_blank"><font color="#999999">cq674350529 发表于 2015-9-16 13:21</font></a></font>
没有用模拟器,恩,实飞的时候altitude显示为0,但是使用DJI GO则显示有较精确的值。Phantom 3 Professio ...</blockquote></div>Hi,您激活了吗?如果激活了,实飞的时候GPS信号怎样?
作者: cq674350529    时间: 2015-9-17
<div class="quote"><blockquote><font size="2"><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&goto=findpost&pid=275392&ptid=25697" target="_blank"><font color="#999999">DJI-Shirley 发表于 2015-9-17 11:02</font></a></font>
Hi,您激活了吗?如果激活了,实飞的时候GPS信号怎样?</blockquote></div>激活了的,可以获取到图传信息和其他的一些飞行参数,在室内飞的(PS:室外禁飞。。。),没有GPS信号,这个和那个悬停高度有关吗?但是同样在室内使用DJI -GO 是可以获取到悬停高度的。
作者: DJI-Shirley    时间: 2015-9-17
<div class="quote"><blockquote><font size="2"><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&goto=findpost&pid=275857&ptid=25697" target="_blank"><font color="#999999">cq674350529 发表于 2015-9-17 16:08</font></a></font>
激活了的,可以获取到图传信息和其他的一些飞行参数,在室内飞的(PS:室外禁飞。。。),没有GPS信号,这个 ...</blockquote></div>不好意思,误解了楼主的问题。。室内高度确实会有一定误差,暂时无法解决。

作者: cq674350529    时间: 2015-9-18
<div class="quote"><blockquote><font size="2"><a class="nopicture" rel="noopener" href="https://bbs.dji.com/forum.php?mod=redirect&goto=findpost&pid=276318&ptid=25697" target="_blank"><font color="#999999">DJI-Shirley 发表于 2015-9-17 21:04</font></a></font>
不好意思,误解了楼主的问题。。室内高度确实会有一定误差,暂时无法解决。
...</blockquote></div>好吧,我自己写的APP获取的悬停高度一直为0,但是DJI Go上面显示的值还比较准确。。。。不过,还是谢谢您
作者: Yoution    时间: 2015-9-18
<font size="3">首先,调试APP的时候,把鼠标指针移动到右上角,点击关闭按钮。站起身,离开工位,回寝室休息吧,少加班,多运动。问题自然解决啦~~</font>





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