DJI Mobile SDK Documentation

      class Stick

      @EXClassNullAway
      class Stick
      Package:dji.common
      Description:

      DJI hardware stick. For example, the joystick on a remote controller, or the gimbal control stick on a handheld controller.

      Class Members:
      Constructor
      method
      method Stick
      Stick(int horizontalPosition, int verticalPosition)
      Package:dji.common
      Description:

      Constructor of the stick object.

      Input Parameters:
      int horizontalPositionstick's horizontal position value, the value it's in the range of [-660, 660].
      int verticalPositionstick's vertical position value, the value it's in the range of [-660, 660].
      Horizontal Position
      method
      method getHorizontalPosition
      int getHorizontalPosition()
      Package:dji.common
      Description:

      Get the stick's horizontal position value, the value it's in the range of [-660, 660].

      Return:
      intAn int value.
      Vertical Position
      method
      method getVerticalPosition
      int getVerticalPosition()
      Package:dji.common
      Description:

      Get the stick's vertical position value, the value it's in the range of [-660, 660].

      Return:
      intAn int value.