DJI Mobile SDK Documentation

      class DJIGravityCenterState

      @interface DJIGravityCenterState : NSObject
      Header:DJIGravityCenterBaseTypes.h
      Inherits From:NSObject
      Description:

      This class provides the gravity state information.

      Class Members:
      Calibration State
      property
      property calibrationState
      @property (nonatomic, readonly) DJIGravityCenterCalibrationState calibrationState
      Header:DJIGravityCenterBaseTypes.h
      Description:

      The status of the gravity's calibration.

      See Also:

      DJIGravityCenterCalibrationState

      Calibration Error
      property
      property calibrationError
      @property (nonatomic, readonly, nullable) NSError *calibrationError
      Header:DJIGravityCenterBaseTypes.h
      Description:

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

      enum DJIGravityCenterCalibrationState
      typedef NS_ENUM(NSInteger, DJIGravityCenterCalibrationState)
      Header:DJIGravityCenterBaseTypes.h
      Description:

      Enum for gravity calibration State.

      Enum Members:
      DJIGravityCenterCalibrationStateNoneThe aircraft is not calibrating the gravity center.
      DJIGravityCenterCalibrationStateCalibratingThe aircraft is calibrating the gravity center.
      DJIGravityCenterCalibrationStateSuccessfulThe aircraft calibrates the gravity center successfully.
      DJIGravityCenterCalibrationStateFailedThe aircraft calibrates the gravity center failed.
      DJIGravityCenterCalibrationStateUnknownUnknown calibration status.