DJI Mobile SDK Documentation

      class DJIFlightControllerError

      @EXClassNullAway
      class DJIFlightControllerError extends DJIError
      Package:dji.common.error
      Inherits From:DJIError
      Description:

      Defines all flight controller errors.

      Class Members:
      method getDJIError
      static DJIError getDJIError(Ccode ccode)
      Package:dji.common.error
      Description:

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

      Input Parameters:
      Ccode ccodeError code.
      Return:
      static DJIErrorThe DJIError object.
      final FAIL_TO_ENTER_TRANSPORT_MODE_WHEN_MOTORS_ON
      static final DJIFlightControllerError FAIL_TO_ENTER_TRANSPORT_MODE_WHEN_MOTORS_ON = new DJIFlightControllerError("When the motors are on, the aircraft could not get into transport mode.")
      Package:dji.common.error
      Description:

      When the motors are on, the aircraft could not get into transport mode.

      final IMU_CALIBRATION_ERROR_IN_THE_AIR_OR_MOTORS_ON
      static final DJIFlightControllerError IMU_CALIBRATION_ERROR_IN_THE_AIR_OR_MOTORS_ON = new DJIFlightControllerError("IMU calibration is now allowed if the aircraft's motors are on or the aircraft is in the air.")
      Package:dji.common.error
      Description:

      IMU calibration is not allowed if the aircraft's motors are on or the aircraft is in the air.

      final INVALID_PARAMETER
      static final DJIFlightControllerError INVALID_PARAMETER =
      new DJIFlightControllerError("FlightController received invalid parameters")
      Package:dji.common.error
      Description:

      The parameter is not a valid value.

      final GPS_SIGNAL_WEAK
      static final DJIFlightControllerError GPS_SIGNAL_WEAK = new DJIFlightControllerError(
      "GPS level is too weak to allow flight controller to obtain accurate location.")
      Package:dji.common.error
      Description:

      GPS level is not high enough to allow flight controller to obtain accurate location.

      final COULD_NOT_ENTER_TRANSPORT_MODE
      static final DJIFlightControllerError COULD_NOT_ENTER_TRANSPORT_MODE =
      new DJIFlightControllerError("Aircraft could not enter transport mode, since the gimbal is still connected")
      Package:dji.common.error
      Description:

      Aircraft could not enter transport mode, since the gimbal is still connected.

      final CANNOT_TURN_OFF_MOTORS_WHILE_AIRCRAFT_FLYING
      static final DJIFlightControllerError CANNOT_TURN_OFF_MOTORS_WHILE_AIRCRAFT_FLYING =
      new DJIFlightControllerError("The aircraft is flying and the motors could not be shut down.")
      Package:dji.common.error
      Description:

      The aircraft is flying. For safety consideration, the motors could not be shut down.

      final HOME_POINT_TOO_FAR
      static final DJIFlightControllerError HOME_POINT_TOO_FAR = new DJIFlightControllerError(
      "Location is not within 30M of initial take-off location OR current RC location.")
      Package:dji.common.error
      Description:

      The new home point is too far.

      final GO_HOME_ALTITUDE_TOO_LOW
      static final DJIFlightControllerError GO_HOME_ALTITUDE_TOO_LOW =
      new DJIFlightControllerError("The go home altitude is too low (lower than 20m).")
      Package:dji.common.error
      Description:

      The new home altitude is too low. (Lower than 20m).

      final GO_HOME_ALTITUDE_TOO_HIGH
      static final DJIFlightControllerError GO_HOME_ALTITUDE_TOO_HIGH =
      new DJIFlightControllerError("The go home altitude is too high.")
      Package:dji.common.error
      Description:

      The new home altitude is too high. (higher than 500m).

      final GO_HOME_ALTITUDE_HIGHER_THAN_MAX_FLIGHT_HEIGHT
      static final DJIFlightControllerError GO_HOME_ALTITUDE_HIGHER_THAN_MAX_FLIGHT_HEIGHT =
      truenew DJIFlightControllerError("The go home altitude is too high (higher than max flight height).")
      Package:dji.common.error
      Description:

      The go home altitude is too high (higher than max flight height).

      final RTK_CANNOT_START
      static final DJIFlightControllerError RTK_CANNOT_START =
      new DJIFlightControllerError("The RTK starting is failed.")
      Package:dji.common.error
      Description:

      RTK cannot start properly. Please reboot.

      final RTK_CONNECTION_BROKEN
      static final DJIFlightControllerError RTK_CONNECTION_BROKEN = new DJIFlightControllerError("The RTK connection is lost.")
      Package:dji.common.error
      Description:

      Connection between base station and mobile station is broken.

      final RTK_BS_ANTENNA_ERROR
      static final DJIFlightControllerError RTK_BS_ANTENNA_ERROR = new DJIFlightControllerError("The RTK base station antenna is broken.")
      Package:dji.common.error
      Description:

      RTK base station antenna error. Check if the antenna is connected to the correct port.

      final RTK_BS_COORDINATE_RESET
      static final DJIFlightControllerError RTK_BS_COORDINATE_RESET =
      new DJIFlightControllerError("The RTK base station location has been reset")
      Package:dji.common.error
      Description:

      RTK base station's coordinate resets.

      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 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.