DJI Mobile SDK Documentation

      class GoToActionError

      class GoToActionError extends DJIError
      Package:dji.sdk.mission.error
      Inherits From:DJIError
      Description:

      The error codes for the GoToAction.

      Class Members:

      Members

      final INVALID_ALTITUDE
      static final GoToActionError
      INVALID_ALTITUDE = new GoToActionError("Altitude of the GoToAction Waypoint mission is not valid, its value should in the range [-200, 500]")
      Package:dji.sdk.mission.error
      Description:

      Altitude of the GoToAction Waypoint mission is not valid, its value should be in the range [-200, 500].

      final INVALID_COORDINATE
      static final GoToActionError
      INVALID_COORDINATE = new GoToActionError("GPS Coordinate of the GoToAction Waypoint is not valid. "
      + "Lattitude valud should in the range [-90f, 90f] and longitude value should in the range [-180f, 180f]")
      Package:dji.sdk.mission.error
      Description:

      GPS Coordinates of the GoToAction Waypoint is not valid. Latitude value should be in the range [-90f, 90f] and longitude value should be in the range [-180f, 180f].

      final INVALID_FLIGHT_SPEED
      static final GoToActionError
      INVALID_FLIGHT_SPEED = new GoToActionError("Flight speed of the GoToAction Waypoint is not valid, its value should be in the range [2, 15]")
      Package:dji.sdk.mission.error
      Description:

      Flight speed of the GoToAction Waypoint is not valid. Value should be in range [2, 15] m/s.

      Inherited Methods:
      dji.common.error.DJIError
      method
      method getDJIError
      static DJIError getDJIError(int errorCode)
      Package:dji.common.error
      Description:

      Returns the specific error in the DJIFlightHubError according to the error code.

      Input Parameters:
      int errorCodeerrorCode for DJIFlightHubError.
      Return:
      static DJIErrorAn NSError object initialized with errorCode. If the errorCode was 0, returns nil.
      method getDJIError
      static DJIError getDJIError(int errorCode)
      Package:dji.sdk.utmiss
      Description:

      Get DJIUTMISSError.

      Input Parameters:
      int errorCodeAn int value of error code.
      Return:
      static DJIErrorAn object of DJIError.
      method getDescription
      String getDescription()
      Package:dji.common.error
      Description:

      Returns the description of the error code.

      Return:
      StringThe description of the error code.
      method setDescription
      void setDescription(String desc)
      Package:dji.common.error
      Description:

      Sets the description for the error code.

      Input Parameters:
      String descDescription string.