无人机起飞前,有时会提升指南针异常,电磁干扰,我们从getmDJIDiagnosticsList,没有获取到异常,这...

Completed

Comments

5 comments

  • DJI Developer Support
    除了setDiagnosticsInformationCallback的error信息,compass.hasError也可以判断指南针异常。
    0
    Comment actions Permalink
  • 红色石头

    好的,还有要给问题,我连接pilot提示“电池1性能严重下降,继续使用有安全风险”。但是setDiagnosticsInformationCallback没有这个信息,这个是从哪里获取的?另外,这几条错误码对呀的分别什么异常?

     

     diagnostics toString =  DJIDiagnostics{type=DEVICE_HEALTH_INFORMATION, code=370147330, subCode=0, componentIndex=0, reason='', solution='', healthInformation=DeviceHealthInformation{informationId=16100002, sensorIndex=0, componentId=0, warningLevel=CAUTION}}

     diagnostics toString =  DJIDiagnostics{type=DEVICE_HEALTH_INFORMATION, code=0, subCode=0, componentIndex=0, reason='', solution='', healthInformation=DeviceHealthInformation{informationId=19000041, sensorIndex=0, componentId=0, warningLevel=CAUTION}}

    diagnostics toString =  DJIDiagnostics{type=DEVICE_HEALTH_INFORMATION, code=370147356, subCode=0, componentIndex=0, reason='', solution='', healthInformation=DeviceHealthInformation{informationId=1610001c, sensorIndex=0, componentId=0, warningLevel=CAUTION}}

    diagnostics toString =  DJIDiagnostics{type=DEVICE_HEALTH_INFORMATION, code=0, subCode=0, componentIndex=0, reason='', solution='', healthInformation=DeviceHealthInformation{informationId=1a420bc4, sensorIndex=0, componentId=0, warningLevel=CAUTION}}

    0
    Comment actions Permalink
  • DJI Developer Support
    针对pilot提示电池性能下降,MSDK这边好像没有其他接口用于监测这个问题。 下面这些错误码可以在Mobile-SDK-Android/hms.json at master · dji-sdk/Mobile-SDK-Android (github.com)中查到部分。informationId=19000041指的是连接USB阻飞、informationId=1a420bc4指的是左视障碍物感知系统失效,剩余两条没能在json文件中查到。 针对缺少的错误码,我会进行提单处理,不排除缺失错误码与电池相关的可能,因此电池性能下降的错误提示,需要在补充上缺失错误码之后再进行评估是否为功能缺失。
    0
    Comment actions Permalink
  • 红色石头

    好的,多谢哈

    0
    Comment actions Permalink
  • DJI Developer Support
    上次未查询到的错误码是提示性错误码,并不是无人机出现了错误,现在已经添加到hms.json中。 对于电池性能下降的监听接口,并没有找到可以监听电池性能下降的监听接口。如果pilot上的这个错误是提示性错误,那么可能也是对错误码的解释。 ![](https://djisdksupport.zendesk.com/attachments/token/I0Lx2cGWbWNGOHRdjGIhk1d44/?name=inline-587609441.png) ![](https://djisdksupport.zendesk.com/attachments/token/dbDaMQQie0372aOoqYWQTZtbh/?name=inline-1671839230.png)​​
    0
    Comment actions Permalink

Please sign in to leave a comment.