class Stick
@EXClassNullAway class Stick
|
Description:
DJI hardware stick. For example, the joystick on a remote controller, or the gimbal control stick on a handheld controller.
Class Members:
method Stick
Stick(int horizontalPosition, int verticalPosition)
|
Description:
Constructor of the stick object.
int horizontalPosition | stick's horizontal position value, the value it's in the range of [-660, 660]. |
int verticalPosition | stick's vertical position value, the value it's in the range of [-660, 660]. |
Horizontal Position
method
method getHorizontalPosition
int getHorizontalPosition()
|
Description:
Get the stick's horizontal position value, the value it's in the range of [-660, 660].
Return:
method getVerticalPosition
int getVerticalPosition()
|
Description:
Get the stick's vertical position value, the value it's in the range of [-660, 660].
Return: