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 NOT_LOGGED_IN
      static final DJIFlightControllerError NOT_LOGGED_IN = new DJIFlightControllerError("You are not logged in.")
      Package:dji.common.error
      Description:

      No user is logged in.

      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.


      Members

      final BASE_STATION_NOT_ACTIVATED
      static final DJIFlightControllerError BASE_STATION_NOT_ACTIVATED = new DJIFlightControllerError(" The base station isn't activated.")
      Package:dji.common.error
      Description:

      The base station isn't activated.

      final BASE_STATION_IS_MOVED
      static final DJIFlightControllerError BASE_STATION_IS_MOVED = new DJIFlightControllerError("The base station is moved. Land the aircraft to re-establish the connection to the ground station.")
      Package:dji.common.error
      Description:

      The base station is moved. Land the aircraft to re-establish the connection to the ground station.

      final BASE_STATION_FELL
      static final DJIFlightControllerError BASE_STATION_FELL = new DJIFlightControllerError("The base station fell. Land the aircraft to re-establish the connection to the ground station.")
      Package:dji.common.error
      Description:

      The base station fell. Land the aircraft to re-establish the connection to the base station.

      final NAVIGATION_SATELLITE_SYSTEM_CAN_NOT_SET
      static final DJIFlightControllerError NAVIGATION_SATELLITE_SYSTEM_CAN_NOT_SET = new DJIFlightControllerError("The selection of navigation satellite system is only supported when the RTK function is turned off, and cannot be modified in the air")
      Package:dji.common.error
      Description:

      The selection of navigation satellite system is only supported when the RTK function is turned off, and cannot be modified in the air.

      final BASE_STATION_PARAMETER_NUMBER_NOT_MATCH
      static final DJIFlightControllerError BASE_STATION_PARAMETER_NUMBER_NOT_MATCH = new DJIFlightControllerError("Base station internal error. Parameter numbers do not match. Please contact <dev@dji.com>.")
      Package:dji.common.error
      Description:

      Base station internal error. Parameter numbers do not match. Please contact https://djisdksupport.zendesk.com/hc/requests/new.

      final BASE_STATION_PARAMETER_LENGTH_NOT_MATCH
      static final DJIFlightControllerError BASE_STATION_PARAMETER_LENGTH_NOT_MATCH = new DJIFlightControllerError("Base station internal error. Parameters' length do not match. Please contact <dev@dji.com>.")
      Package:dji.common.error
      Description:

      Base station internal error. Parameters' length do not match. Please contact https://djisdksupport.zendesk.com/hc/requests/new.

      final BASE_STATION_PARAMETER_READ_ONLY
      static final DJIFlightControllerError BASE_STATION_PARAMETER_READ_ONLY = new DJIFlightControllerError("Base station internal error. Parameters read only. Please contact <dev@dji.com>.")
      Package:dji.common.error
      Description:

      Base station internal error. Parameters read only. Please contact https://djisdksupport.zendesk.com/hc/requests/new.

      final GRAVITY_CENTER_CALIBRATION_NOT_FLYING
      static final DJIFlightControllerError GRAVITY_CENTER_CALIBRATION_NOT_FLYING= new DJIFlightControllerError("The aircraft cannot start the gravity center calibration because it is not flying.")
      Package:dji.common.error
      Description:

      The aircraft cannot start the gravity center calibration because it is not flying.

      final GRAVITY_CENTER_CALIBRATION_NOT_FLYING_NOT_WORK_IN_SIMULATOR
      static final DJIFlightControllerError GRAVITY_CENTER_CALIBRATION_NOT_FLYING_NOT_WORK_IN_SIMULATOR = new DJIFlightControllerError("The aircraft cannot start the gravity center calibration because the simulator starts.")
      Package:dji.common.error
      Description:

      The aircraft cannot start the gravity center calibration because the simulator starts.

      final GRAVITY_CENTER_CALIBRATION_IS_RUNNING
      static final DJIFlightControllerError GRAVITY_CENTER_CALIBRATION_IS_RUNNING = new DJIFlightControllerError("The aircraft cannot start the gravity center calibration before the previous calibration finishes.")
      Package:dji.common.error
      Description:

      The aircraft cannot start the gravity center calibration before the previous calibration finishes.

      final GRAVITY_CENTER_CALIBRATION_NOT_HOVERING
      static final DJIFlightControllerError GRAVITY_CENTER_CALIBRATION_NOT_HOVERING = new DJIFlightControllerError("The aircraft cannot start the gravity center calibration because it is not hovering.")
      Package:dji.common.error
      Description:

      The aircraft cannot start the gravity center calibration because it is not hovering.

      final GRAVITY_CENTER_CALIBRATION_STOPPED_BY_USER
      static final DJIFlightControllerError GRAVITY_CENTER_CALIBRATION_STOPPED_BY_USER = new DJIFlightControllerError("The gravity center calibration is stopped by the user.")
      Package:dji.common.error
      Description:

      The gravity center calibration is stopped by the user.

      final GRAVITY_CENTER_CALIBRATION_FAILED_IN_BIG_WIND
      static final DJIFlightControllerError GRAVITY_CENTER_CALIBRATION_FAILED_IN_BIG_WIND = new DJIFlightControllerError("The gravity center calibration is interrupted because the wind is too strong.")
      Package:dji.common.error
      Description:

      The gravity center calibration is interrupted because the wind is too strong.

      final OWNER_OFFLINE_ERROR
      static final DJIFlightControllerError OWNER_OFFLINE_ERROR= new DJIFlightControllerError("The current rc is offline")
      Package:dji.common.error
      Description:

      Owner offline error.

      final DEVICE_LOCKED_ERROR
      static final DJIFlightControllerError DEVICE_LOCKED_ERROR= new DJIFlightControllerError("The device to lock is locked")
      Package:dji.common.error
      Description:

      Device locked error.

      final OWNER_OUT_CONTROL_ERROR
      static final DJIFlightControllerError OWNER_OUT_CONTROL_ERROR= new DJIFlightControllerError("The current rc does not have this device control permission.")
      Package:dji.common.error
      Description:

      Owner out control error.

      final COMMAND_NOT_SUPPORTED_BY_CURRENT_ATTITUDE
      static final DJIFlightControllerError COMMAND_NOT_SUPPORTED_BY_CURRENT_ATTITUDE = new DJIFlightControllerError("The command cannot be executed with the current attitude.")
      Package:dji.common.error
      Description:

      The command cannot be executed with the current attitude.

      final BASE_STATION_NEED_LOGIN
      static final DJIFlightControllerError BASE_STATION_NEED_LOGIN = new DJIFlightControllerError("For Matrice 300 RTK, you must login before set name, or set referencingLocation etc.")
      Package:dji.common.error
      Description:

      For Matrice 300 RTK, you must login before you can set name, or use setBaseStationReferencingLocation etc.

      final CANNOT_BASE_STATION_SCAN_IN_FLYING
      static final DJIFlightControllerError CANNOT_BASE_STATION_SCAN_IN_FLYING = new DJIFlightControllerError("For Matrice 300 RTK, you could not trigger scan base station when flying")
      Package:dji.common.error
      Description:

      For Matrice 300 RTK, you cannot scan fro a base station while flying.

      final BASE_STATION_PASSWORD_INVALID
      static final DJIFlightControllerError BASE_STATION_PASSWORD_INVALID =
      truetruenew DJIFlightControllerError("Base station administrator account's password is invalid. Please login again. If you reset your password, please use the default password.")
      Package:dji.common.error
      Description:

      Base station administrator account password is invalid. Please login again. If you reset your password, please use the default password.

      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.