iOS SDK DJIBaseProductDelegate
CompletedHow to get code, reason, solution when I listen didUpdateDiagnosticsInformation.
Ex: aircraft disconnect, GPS signal
-
didUpdateDiagnosticsInformation will automatically push code,solution and other information. But it pushes the status information of the aircraft, if you need to determine whether the aircraft is connected as well as the GPS signal, you need to use the corresponding interface or callback. In the event that the aircraft gets disconnected, the SDK will call back the productDisconnected function. To retrieve the GPS signal level, you can refer to the GPSSignalLevel (https://developer.dji.com/api-reference/ios-api/Components/FlightController/DJIFlightController_DJIFlightControllerCurrentState.html?search=gps&i=0djiflightcontroller_djiflightcontrollercurrentstate_gpssignalstatus_inline) for more details. -
I wanted to ask you about the DiagnosticsInformationCallback. Is there a possibility that it doesn't push the same errorCode as the DJI application, but still contains the same information? For example, when you encounter the error code 30001 in the DJI application, does the DiagnosticsInformationCallback callback provide GPS-related information? Also, I wanted to check if you are using the latest version of the iOS SDK?
Please sign in to leave a comment.
Comments
3 comments