djiuser_kIFd1YLbS2Ke
lvl.1
China
Offline
|
IOS SDK:
use_frameworks!
pod 'DJI-SDK-iOS','~> 4.13.1'
pod 'DJI-UXSDK-iOS', '~> 4.13'
pod 'DJIWidget', '~> 1.6.3'
and with following codes:
[[[RACObserve(self.aircraft, batteries) ignore:nil] take:1] subscribeNext:^(NSArray *batteries) {
@strongify(self);
NSInteger count = batteries.count;
for (int i = 0; i < count; i ++) {
DJIBattery *battery = batteries[i];
battery.delegate = self;
}
}];
}
but, I find that when drone connected, self.aircraft.batteries is always null!
Is there anyother way to listen to the state of batteris for M300 RTK?
|
|