M300能否拿到返航所需要的电量和降落所需要的电量?这个接口djiBattery->getBatteryWholeI...

已完成

评论

3 条评论

  • DJI Developer Support
    尊敬的用户, 您好!感谢您联系DJI 大疆创新。 确认下,您咨询的是OSDK吗? 非常感谢您的理解与配合,祝您生活愉快! Best Regards, DJI 大疆创新SDK技术支持
    -1
    评论操作 固定链接
  • 唐 博远

    是的,OSDK的。希望通过OSDK获得返航所需要的电量和降落所需要的电量。djiBattery->getBatteryWholeInfo()发现这个接口可以有相关数据,但是,好像M300拿到的数据是无效的。所以想知道M300是否可以拿到相关数据

    0
    评论操作 固定链接
  • DJI Developer Support
    M300 只支持获取单块电池信息 getSingleBatteryDynamicInfo 获取信息如下: typedef struct SmartBatteryDynamicInfo { uint8_t reserve; uint8_t batteryIndex; int32_t currentVoltage; /*! uint:mV*/ int32_t currentElectric; /*!uint:mA*/ uint32_t fullCapacity; /*!uint:mAh*/ uint32_t remainedCapacity; /*!uint:mAh*/ int16_t batteryTemperature; /*!uint:鈩?/ uint8_t cellCount; uint8_t batteryCapacityPercent; /*!uint:%*/ DJISmartBatteryState batteryState; uint8_t reserve1; uint8_t reserve2; uint8_t SOP; /*!Relative power percentage*/ } SmartBatteryDynamicInfo;
    0
    评论操作 固定链接

请先登录再写评论。