DJI Mobile SDK Documentation

      class DJIVisionControlState

      @interface DJIVisionControlState : NSObject
      Header:DJIVisionTypes.h
      Inherits From:NSObject
      SDK Key:DJIFlightControllerKey.DJIFlightAssistantParamVisionControlState
      Description:

      This class gives the aircraft's state, which is controlled by the intelligent flight assistant.

      Class Members:
      Collision Avoidance
      property
      property isBraking
      @property (nonatomic, readonly) BOOL isBraking
      Header:DJIVisionTypes.h
      SDK Key:DJIFlightControllerKey.DJIFlightAssistantParamIsBraking
      Description:

      YES if the aircraft is braking automatically to avoid collision.

      property isAvoidingActiveObstacleCollision
      @property (nonatomic, readonly) BOOL isAvoidingActiveObstacleCollision
      Header:DJIVisionTypes.h
      Description:

      YES if the aircraft is avoiding collision from an obstacle moving towards the aircraft.

      property isAscentLimitedByObstacle
      @property (nonatomic, readonly) BOOL isAscentLimitedByObstacle
      Header:DJIVisionTypes.h
      Description:

      YES if the aircraft will not ascend further because of an obstacle detected within 1m above it.

      Precision Landing
      property
      property isPerformingPrecisionLanding
      @property (nonatomic, readonly) BOOL isPerformingPrecisionLanding
      Header:DJIVisionTypes.h
      SDK Key:DJIFlightControllerKey.DJIFlightAssistantParamPrecisionLandingEnabled
      Description:

      YES if the aircraft is landing precisely.

      property landingProtectionState
      @property (nonatomic, readonly) DJIVisionLandingProtectionState landingProtectionState
      Header:DJIVisionTypes.h
      SDK Key:DJIFlightControllerKey.DJIFlightAssistantParamLandingProtectionEnabled
      Description:

      The aircraft's landing protection state. This status is valid when landing protection is enabled.

      See Also:

      DJIVisionLandingProtectionState

      property isAdvancedPilotAssistanceSystemActive
      @property (nonatomic, readonly) BOOL isAdvancedPilotAssistanceSystemActive
      Header:DJIVisionTypes.h
      Description:

      YES if Advanced Pilot Assistance System (APAS) is active. When it is active, the aircraft will change flight path automatically to avoid obstacles.

      enum DJIVisionLandingProtectionState
      typedef NS_ENUM (NSInteger, DJIVisionLandingProtectionState)
      Header:DJIVisionTypes.h
      SDK Key:DJIFlightControllerKey.DJIFlightControllerParamLandingProtectionState
      Description:

      Landing protection status returned by the downward vision sensor.

      Enum Members:
      DJIVisionLandingProtectionStateNoneThe aircraft is not executing auto-landing or the downward vision sensor has not started to analyze the ground yet.
      DJIVisionLandingProtectionStateAnalyzingThe downward vision sensor is analyzing the ground at the landing zone.
      DJIVisionLandingProtectionStateAnalysisFailedThe downward vision sensor's analysis failed. Either the auto-landing can be attempted again, or the user needs to land the aircraft manually.
      DJIVisionLandingProtectionStateSafeToLandThe ground is flat and the aircraft is safe to land automatically.
      DJIVisionLandingProtectionStateNotSafeToLandLanding area is not flat enough to be considered safe for landing. The aircraft should be moved to an area that is more flat and an auto-land should be attempted again or the user should land the aircraft manually.
      DJIVisionLandingProtectionStateUnknownUnknown.