DJI Mobile SDK Documentation

      class GoHomeAction

      class GoHomeAction extends LandOrGoHomeActionBase
      Package:dji.sdk.mission.timeline.actions
      Inherits From:LandOrGoHomeActionBase
      Description:

      This class represents a go-home action used as an element in a Timeline mission. By creating an object of this class and adding it to Mission Control's Timeline, the aircraft will go home when the Timeline reaches the action.

      Class Members:
      Landing Confirmation
      method
      method setAutoConfirmLandingEnabled
      @Override
      void setAutoConfirmLandingEnabled(boolean enable)
      Package:dji.sdk.mission.timeline.actions
      Description:

      true to enable automatic confirmation during landing. For flight controller firmware version 3.2.0.0 or above, when the clearance between the aircraft and the ground is less than 0.3m, the aircraft will pause landing and wait for the user's confirmation to continue. Enabling the auto confirmation, allows the aircraft to continue landing without the user's confirmation during the timeline execution. For firmware that does not require landing confirmation, the value is ignored. The default value is true.

      Input Parameters:
      boolean enableEnable automatic confirmation during landing.
      method getAutoConfirmLandingEnabled
      @Override
      boolean getAutoConfirmLandingEnabled()
      Package:dji.sdk.mission.timeline.actions
      Description:

      For flight controller firmware version 3.2.0.0 or above, when the clearance between the aircraft and the ground is less than 0.3m, the aircraft will pause landing and wait for the user's confirmation to continue. Enabling the auto confirmation, allows the aircraft to continue landing without the user's confirmation during the timeline execution. For firmware that does not require landing confirmation, the value is ignored. The default value is true.

      Return:
      booleanA boolean value.