Closed chrissearle closed 8 years ago
Seen with osmo too now in 3.1.1
We get a new product from the SDK - but - there is no camera or no gimbal or no battery or similar. Goes away if we restart the app.
Reproduced in 3.2 - osmo seen but with no camera, gimbal or battery on resume from background. Was connected fine when it went into background.
The product is returned from:
- (void)sdkManagerProductDidChangeFrom:(DJIBaseProduct *_Nullable)oldProduct to:(DJIBaseProduct *_Nullable)newProduct
but it sometimes has no camera, sometimes no gimbal, sometimes no battery and sometimes a combination.
From DJI:
Answer: - (void)sdkManagerProductDidChangeFrom:(DJIBaseProduct _Nullable)oldProduct to:(DJIBaseProduct _Nullable)newProduct
This method is to check whether the Product is connected. However, when talking about the component like camera, gimbal and battery, we use another method to check it in the DJIBasePorduct.h –(void)componentWithKey: (NSString )key changeFrom: (DJIBaseComponent _Nullable)oldComponent to : (DJIBaseComponent *_Nullable)newComponent;
Believed fixed in d8c1ab5d27cf86c20ae545e222ef6c7defa57e60 - needs testing. Closing now - re-open if still an issue.
This is a little worrying