public final enum

DJIVirtualStickRollPitchControlMode

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ dji.common.flightcontroller.DJIVirtualStickRollPitchControlMode

Class Overview

Defines how manual roll and pitch values are interpreted by the aircraft.

Summary

Enum Values
DJIVirtualStickRollPitchControlMode  Angle  Sets the VirtualStickControlMode roll and pitch values to be an angle relative to a level aircraft. 
DJIVirtualStickRollPitchControlMode  Velocity  Sets the VirtualStickControlMode roll and pitch values to be a velocity. 
Public Methods
boolean _equals(int b)
Returns the boolean result which compare the input integer value with the real value of a enum constant.
static DJIVirtualStickRollPitchControlMode find(int b)
Returns the enum constant of this type with the input integer value.
int value()
Returns the real value of an enum constant.
static DJIVirtualStickRollPitchControlMode valueOf(String name)
final static DJIVirtualStickRollPitchControlMode[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final DJIVirtualStickRollPitchControlMode Angle

Sets the VirtualStickControlMode roll and pitch values to be an angle relative to a level aircraft. In the body coordinate system, positive and negative pitch angle is for the aircraft rotating about the y axis in positive direction or in negative direction respectively. Positive and negative roll angle is the positive direction or negative direction rotation angle about the x axis respectively. However in the ground coordinate system, positive and negative pitch angle is the angle value for the aircraft moving south and north respectively. Positive and negative roll angle is the angle when the aircraft is moving east and west respectively. Maximum angle is defined as DJIVirtualStickRollPitchControlMaxAngle; Minimum angle is defined as DJIVirtualStickRollPitchControlMinAngle;

public static final DJIVirtualStickRollPitchControlMode Velocity

Sets the VirtualStickControlMode roll and pitch values to be a velocity. In the body coordinate system, positive and negative pitch velocity is for the aircraft moving towards the positive direction or negative direction along the pitch axis/y axis respectively. Positive and negative roll velocity is when the aircraft is moving towards the positive direction or negative direction along the roll axis/x axis respectively. However, in the ground coordinate system, positive and negative pitch velocity is for the aircraft moving east and west respectively. Positive and negative roll velocity is when the aircraft is moving north and south respectively. Maximum velocity is defined as DJIVirtualStickRollPitchControlMaxVelocity; Minimum velocity is defined as DJIVirtualStickRollPitchControlMinVelocity.

Public Methods

public boolean _equals (int b)

Returns the boolean result which compare the input integer value with the real value of a enum constant.

Parameters
b The input integer value
Returns
  • boolean The compared result

public static DJIVirtualStickRollPitchControlMode find (int b)

Returns the enum constant of this type with the input integer value.

Parameters
b The input integer value.
Returns
  • DJIGPSSignalStatus The enum constant of this type.

public int value ()

Returns the real value of an enum constant.

Returns
  • integer The real value.

public static DJIVirtualStickRollPitchControlMode valueOf (String name)

public static final DJIVirtualStickRollPitchControlMode[] values ()