精灵4pro 自动返航状态一直是 IDLE

Completed

Comments

5 comments

  • DJI Developer Support
    这个确实是bug,返航状态无法监听,固件已经确认不会更改。
    0
    Comment actions Permalink
  • 1120240290

    是这个机型的固件不能监听返航状态还是所有机型的固件都不能监听返航状态?

    0
    Comment actions Permalink
  • DJI Developer Support
    御2行业版也有这个问题, 目前御2行业进阶版和M300没这个问题。你只能靠flightController.getFlightMode监听一下现在得飞行状态是否是返航了。
    0
    Comment actions Permalink
  • 1120240290

    使用 FlightControllerState.getFlightMode() == FlightMode.GO_HOME 来判断是否返航,

    那FlightControllerState里面还有个 isGoingHome() 方法,这和上面那个判断有什么区别?

    用模拟器实测发现,这两个值,返航开始的时候是统一的,都为true,在到达返航点开始下降的时候,前者为true,后者为false;

    0
    Comment actions Permalink
  • DJI Developer Support
    用前者吧,设计上有点混乱,降落的时候在飞行模式里会被认为是返航模式的一部分,但是SDK封装的并不是如此。
    0
    Comment actions Permalink

Please sign in to leave a comment.