dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
581 stars 256 forks source link

How to get warning level in DJIDiagnostics class? #530

Closed lygialiem closed 2 years ago

lygialiem commented 2 years ago

Hi team.

Currently I make pre-flight checker features, in document i can not see warning level in every diagnostic but the DJIDiagnosticsDeviceHealthInformationWarningLevel. But DJIDiagnosticsDeviceHealthInformationWarningLevel is just worked if the DJIDiagnostics.code == 0 and we have to get code from healthyInformation.informationCode in DJIDiagnostics. By the way, how do we know code in healthyInformation.informationCode is referring to?

Best Regard, thank you very much.

DJI-William commented 2 years ago

The DJIDiagnosticsDeviceHealthInformationWarningLevel only works for M300RTK. The old diagnostic system does not have any warning level logic. image

lygialiem commented 2 years ago

Hi team.

Thank you for your response. I will define this logic myself.

Best Regard.