class HardwareState
@EXClassNullAway class HardwareState
|
| Package: | dji.common.handheld |
Description:
The status of the shutter button and record button on the handheld controller. Used by Osmo Mobile only.
Class Members:
method getTriggerButton
HandheldButtonClickEvent getTriggerButton()
|
Description:
Status of the trigger button.
Return:
method isTriggerBeingPressed
boolean isTriggerBeingPressed()
|
Description:
true when the trigger is being pressed. It is only supported in firmware version 1.2.0.40 or above.
Return:
method getStickVerticalDirection
StickVerticalDirection getStickVerticalDirection()
|
Description:
Status of the joystick in vertical direction.
Return:
method getStickHorizontalDirection
StickHorizontalDirection getStickHorizontalDirection()
|
Description:
Status of the joystick in horizontal direction.
Return:
method getStick
Description:
Position of the stick in both vertical and horizontal direction. Only supported in firmware version 1.2.0.40 or above.
Return:
method getZoomState
| Package: | dji.common.handheld |
Description:
Status of the zoom slider. It is only supported by Osmo Mobile 2.
Return:
enum HandheldButtonClickEvent
@EXClassNullAway enum HandheldButtonClickEvent
|
Description:
The status of the shutter button and record button on the handheld controller.
Enum Members:
| IDLE | Trigger button status is idle. |
| SINGLE_CLICK | Trigger button is pressed and released. |
| DOUBLE_CLICK | Trigger button is pressed twice quickly. |
| TRIPLE_CLICK | Trigger button is pressed three times quickly. |
| UNKNOWN | Trigger button status is unknown. |
Class Members:
enum StickVerticalDirection
@EXClassNullAway enum StickVerticalDirection
|
Description:
Status of the handheld joystick in vertical direction.
Enum Members:
| CENTER | Joystick has no movement in the vertical direction. |
| UP | Joystick is moved up in the vertical direction. |
| DOWN | Joystick is moved down in the vertical direction. |
| UNKNOWN | Joystick status in the vertical direction is unknown. |
Class Members:
enum StickHorizontalDirection
@EXClassNullAway enum StickHorizontalDirection
|
Description:
Status of the handheld joystick in horizontal direction.
Enum Members:
| CENTER | Joystick has no movement in the horizontal direction. |
| LEFT | Joystick is moved left in the horizontal direction. |
| RIGHT | Joystick is moved right in the horizontal direction. |
| UNKNOWN | Joystick status in the horizontal direction is unknown. |
Class Members: