public class

DJIHandheldControllerHardwareState

extends Object
java.lang.Object
   ↳ dji.common.handheld.DJIHandheldControllerHardwareState

Class Overview

Handheld controller's current state. Used by Osmo Mobile only.

Summary

Public Constructors
DJIHandheldControllerHardwareState()
Public Methods
DJIHandheldButtonStatus getHandheldButtonStatus()
Status of the shutter button and record button.
JoystickHorizontalDirection getJoystickHorizontalDirection()
Status of the joystick in horizontal direction.
int getJoystickHorizontalPosition()
Position of the joystick in the horizontal direction.
JoystickVerticalDirection getJoystickVerticalDirection()
Status of the joystick in vertical direction.
int getJoystickVerticalPosition()
Position of the joystick in the vertical direction.
DJIHandheldTriggerStatus getTriggerState()
Status of the trigger button.
boolean isTriggerBeingPressed()
true if the trigger button is being pressed.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DJIHandheldControllerHardwareState ()

Public Methods

public DJIHandheldButtonStatus getHandheldButtonStatus ()

Status of the shutter button and record button.

public JoystickHorizontalDirection getJoystickHorizontalDirection ()

Status of the joystick in horizontal direction.

public int getJoystickHorizontalPosition ()

Position of the joystick in the horizontal direction. Position values can be in range [-660, 660] where positive is left and 0 is center. Only supported in firmware version 1.2.0.40 or above.

public JoystickVerticalDirection getJoystickVerticalDirection ()

Status of the joystick in vertical direction.

public int getJoystickVerticalPosition ()

Position of the joystick in the vertical direction. Position values can be in range [-660, 660] where positive is up and 0 is center. Only supported in firmware version 1.2.0.40 or above.

public DJIHandheldTriggerStatus getTriggerState ()

Status of the trigger button.

public boolean isTriggerBeingPressed ()

true if the trigger button is being pressed. It is only supported in firmware version 1.2.0.40 or above.