pilot 在使用kml航点飞行,自己写的app采集不到经纬度??手动飞行可以 无人机mavic2

Completed

Comments

5 comments

  • DJI Developer Support
    你的问题具体是什么呢?你自己制作的MSDK app可以在飞行中使用flightController.setStateCallback获取flightControllerState.getAircraftLocation获取经纬度。
    0
    Comment actions Permalink
  • cy7979

    是的我自己制作的MSDK app在使用pilot 的导入kml飞行时 flghtController.setStateCallback 的经纬度获取为NAN 高度为0。 是什么原因导致 不允许吗?

    0
    Comment actions Permalink
  • DJI Developer Support
    出现这个问题的原因是GPS信号不好,获取不到经纬度。你当时搜星数是多少?setStateCallback中的getGPSSignalLevel如何?
    0
    Comment actions Permalink
  • cy7979

    如果信号不好 取不到经纬度 怎么判断 飞机是否起飞? 能不能获取到无人机当前执行的航点任务? 以及具体信息?

    0
    Comment actions Permalink
  • DJI Developer Support
    判断是否起飞可以用flightControllerState.areMotorsOn/isFlying,无法导航你只能Load航点任务,无法Upload和Start。
    0
    Comment actions Permalink

Please sign in to leave a comment.