Return Correct Mission Error
353 2 2021-1-27
Uploading and Loding Picture ...(0/1)
o(^-^)o
RDAeriosense
lvl.2

Canada
Offline

How can I retrieve correct error messages when uploading a mission?
Currently, we are using WaypointMissionOperator.uploadMission which uses a CompletionCallback with an onResult with DJI Error. However, DJIError won't return the appropriate error. How can I return a DJIMissionError in the CompletionCallback instead?

For example, if the auto flight speed for the mission is too high when attempting to upload a mission it will return an undefined error while I would like it to return the DJIMissionError AUTO_FLIGHT_SPEED_NOT_VALID.

Thanks
2021-1-27
Use props
DJI-William
lvl.4
  • >>>
Hong Kong
Offline

These kind of error hasn't been defined, we are sorry about that. We will try to cover that later.
2021-1-28
Use props
RDAeriosense
lvl.2

Canada
Offline

Does that mean that all of the DJIError sub classes are not usable? like DJIMissionError: https://developer.dji.com/api-re ... onManagerError.html

Can you let me know which of the classes which extend DJIError are defined please? and how to use them. I can't find any examples.

Thank you.
2021-2-3
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules