Unknown error code on start of WaypointV2 mission
Hello,
when trying to start an uploaded self-generated WaypointV2-Mission via PSDKs WaypointV2_Start(), I get the result code 0x2300010036.
Inside error.h I only see following definitions (https://github.com/dji-sdk/Payload-SDK/blob/51d8261d625c88bf6fadc7743025cbfc8fdc1e55/psdk_lib/include/dji_error.h#L780C3-L781C58):
DJI_ERROR_WAYPOINT_V2_MODULE_RAW_CODE_TRAJ_FIRST_WP_TYPE_IS_WP_TURN_NO = 0x10035, /*!< first waypoint type error, it can not be WP_TURN_NO */
DJI_ERROR_WAYPOINT_V2_MODULE_RAW_CODE_TRAJ_WP_EXCEED_RADIUS_LIMIT = 0x10038, /*!< waypoint position exceed radius limit */
so 0x10036 is not defined publicly.
What does this error code mean?
-
Thanks for that info.
I figured out that I mistakenly supplied coordinates in radians instead of degrees. However, after changing to degrees, I get the error code 0x230001001b (signifying “DJI_ERROR_WAYPOINT_V2_MODULE_RAW_CODE_TRAJ_INIT_INVALID_REF_POINT”) already during UploadMission.
What is this initial reference point?
-
I use custom code for waypoint generation. But, looking into the code of DjiTest_WaypointV2GeneratePolygonWaypointV2 again, I notice that latitude/longitude seem to be radians all along? Can you confirm that waypoint.latitude/longitude needs to be given in radians? In dji_waypoint_v2_type.h the unit is stated as meters (https://github.com/dji-sdk/Payload-SDK/blob/51d8261d625c88bf6fadc7743025cbfc8fdc1e55/psdk_lib/include/dji_waypoint_v2_type.h#L289)
Please sign in to leave a comment.
Comments
7 comments