DJI 电池无效

DJI Battery Null

连接成功后的飞行器意思是这样的

BaseProduct baseProduct = DJISDKManager.getInstance().getProduct();
Aircraft aircraft;
if (baseProduct == null || !baseProduct.isConnected() ||
            !(baseProduct instanceof Aircraft)
           || baseProduct.getModel() == Model.UNKNOWN_AIRCRAFT) {
       aircraft =  null
}
else {
  aircraft = (Aircraft)baseProduct;
}
if(aircraft!=null){
   aircraft.getBattery(); // returns null
   aircraft.getBatteries(); // returns null
   aircraft.getBatteryBox(); // returns null
}

我总是收到 aircraft.getBattery()aircraft.getBatteries()aircraft.getBatteryBox() 空值。

P.S。设备型号为Matrice 600 pro,连接飞行器后可以打印设备型号(真正连接)

我遇到同样的问题,在使用M300 RTK时,(IOS),self.aircraft.batteries

Android 使用: Battery.setAggregationStateCallback.

和,IOS使用: DJIBattery.aggregationDelegate = 自己;