DJI Mobile SDK Documentation

      class ActiveTrackTrackingState

      @EXClassNullAway
      class ActiveTrackTrackingState
      Package:dji.common.mission.activetrack
      Description:

      The tracking state of the ActiveTrack mission that is executing.

      Class Members:
      State
      method
      method getState
      @Nullable
      ActiveTrackTargetState getState()
      Package:dji.common.mission.activetrack
      Description:

      The state of the target being tracked.

      Return:
      ActiveTrackTargetStateAn enum value of ActiveTrackTargetState.
      Target Type
      method
      method getType
      @Nullable
      ActiveTrackTargetType getType()
      Package:dji.common.mission.activetrack
      Description:

      The type of the target being tracked.

      Return:
      ActiveTrackTargetTypeAn enum value of ActiveTrackTargetType.
      method getTargetRect
      @Nullable
      RectF getTargetRect()
      Package:dji.common.mission.activetrack
      Description:

      A rectangle in the live video view image that represents the target being tracked. The rectangle is normalized to [0,1] where (0,0) is the top left of the video preview and (1,1) is the bottom right.

      Return:
      RectFA RectF object.
      method
      method getReason
      @NonNull
      ActiveTrackCannotConfirmReason getReason()
      Package:dji.common.mission.activetrack
      Description:

      Reason why the target cannot be confirmed by the user. It is useful when getState is CANNOT_CONFIRM. Otherwise, it is NONE.

      Return:
      ActiveTrackCannotConfirmReasonAn enum value of ActiveTrackCannotConfirmReason.
      Target Index
      method
      method getTargetIndex
      int getTargetIndex()
      Package:dji.common.mission.activetrack
      Description:

      An int value of target index.

      Return:
      intAn int value of target index.
      method getCompletionPercentage
      int getCompletionPercentage()
      Package:dji.common.mission.activetrack
      Description:

      The progress of the executing QuickShot mission. Only applicable when setMode is QUICK_SHOT. For other modes, it is always 0.

      Return:
      intAn int value of the progress.
      Auto-sensed Subjects
      method
      method getAutoSensedSubjects
      @Nullable
      SubjectSensingState[] getAutoSensedSubjects()
      Package:dji.common.mission.activetrack
      Description:

      The auto-sensed subjects after enabling auto sensing.

      Return:
      SubjectSensingState[]An array of SubjectSensingState
      enum ActiveTrackCannotConfirmReason
      @EXClassNullAway
      enum ActiveTrackCannotConfirmReason
      Package:dji.common.mission.activetrack
      Description:

      The reason why user is not allowed to confirm the current target.

      Enum Members:
      NONENone.
      UNSTABLE_TARGETThe target is unstable.
      TARGET_TOO_HIGHThe target position is too high.
      BLOCKED_BY_OBSTACLEThere is an obstacle between the aircraft and the target that is blocking the target.
      GIMBAL_ATTITUDE_ERRORThe gimbal's attitude is pointing to the ground.
      TARGET_TOO_FARThe target is too far away from the aircraft.
      TARGET_TOO_CLOSEThe target is too close to the aircraft.
      AIRCRAFT_TOO_HIGHThe altitude of the aircraft is too high.
      AIRCRAFT_TOO_LOWThe altitude of the aircraft is too low.
      OBSTACLE_SENSOR_ERRORThe obstacle vision sensor has errors.
      UNKNOWNUnknown.
      Class Members:
      enum ActiveTrackTargetType
      @EXClassNullAway
      enum ActiveTrackTargetType
      Package:dji.common.mission.activetrack
      Description:

      The type of ActiveTrack target.

      Enum Members:
      HUMANThe ActiveTrack target is a human being.
      CARThe ActiveTrack target is a car.
      VANThe ActiveTrack target is a van.
      BIKEThe ActiveTrack target is a bike.
      BOATThe ActiveTrack target is a boat.
      UNKNOWNThe aircraft cannot recognize the target type.
      Class Members:
      enum ActiveTrackTargetState
      @EXClassNullAway
      enum ActiveTrackTargetState
      Package:dji.common.mission.activetrack
      Description:

      The state of the target being tracked by the aircraft.

      Enum Members:
      CANNOT_CONFIRMThe aircraft has recognized the target but the user is not allowed to confirm the target. Check getReason to get more information.
      WAITING_FOR_CONFIRMATIONThe aircraft has recognized the target and is waiting for user's confirmation. If this state, the aircraft will hover in the current position while the camera is tracking the target (by rotating aircraft's yaw or gimbal's altitude). If user confirms the target, the aircraft will start to following the movement of the target.
      TRACKING_WITH_HIGH_CONFIDENCEThe aircraft has recognized the target with high confidence.
      TRACKING_WITH_LOW_CONFIDENCEThe ActiveTrack Mission is tracking a target with low confidence. This is only an indication that either the aircraft will soon ask for confirmation that the target is correct, or may loose tracking the target entirely if confidence doesn't improve.
      UNKNOWNUnknown.
      Class Members: