DJI Mobile SDK Documentation

      class GravityCenterState

      final class GravityCenterState
      Package:dji.common.flightcontroller
      Description:

      This class provides the gravity state information.

      Class Members:
      Calibration State
      method
      method getCalibrationState
      @Nullable
      GravityCenterCalibrationState getCalibrationState()
      Package:dji.common.flightcontroller
      Description:

      The status of the gravity's calibration.

      Return:
      GravityCenterCalibrationStateAn enum value of GravityCenterCalibrationState.
      Calibration Error
      method
      method getCalibrationError
      @Nullable
      DJIError getCalibrationError()
      Package:dji.common.flightcontroller
      Description:

      Gets calibration errors. Returns null when gravity calibration is normal.

      Return:
      DJIErrorAn instance of DJIError.
      enum GravityCenterCalibrationState
      enum GravityCenterCalibrationState
      Package:dji.common.flightcontroller
      Description:

      Enum for gravity calibration State.

      Enum Members:
      NONEThe aircraft is not calibrating the gravity center.
      CALCULATINGThe aircraft is calibrating the gravity center.
      SUCCESSFULThe aircraft calibrates the gravity center successfully.
      FAILEDThe aircraft calibrates the gravity center failed.
      UNKNOWNUnknown calibration status.
      Class Members: