御2带屏控 setLevel1CellVoltageBehavior与getLevel1CellVoltageBe...

Completed

Comments

3 comments

  • DJI Developer Support
    这两个函数已经非常古老了,应该不支持御2了,之前测试连御Air都不支持。你可以试试flightController.setLowBatteryWarningThreshold,然后在flightControllerState.isLowerThanBatteryWarningThreshold获取现在是否达到了,然后写你自己的后面的逻辑。
    0
    Comment actions Permalink
  • 781316853

    新函数会兼容老机型吗

    0
    Comment actions Permalink
  • DJI Developer Support
    不知道你说多老的机型,Mavic 2 Pro之前的不清楚,你先我说得这两个函数Mavic 2 Pro是否支持吧,这两个函数也不是新的,也是老的。但是不如setLevel1CellVoltageBehavior老。
    0
    Comment actions Permalink

Please sign in to leave a comment.