java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | dji.common.flightcontroller.DJIVirtualStickRollPitchControlMode |
Defines how manual roll and pitch values are interpreted by the aircraft.
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
|
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;
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.
Returns the boolean result which compare the input integer value with the real value of a enum constant.
b | The input integer value |
---|
Returns the enum constant of this type with the input integer value.
b | The input integer value. |
---|
Returns the real value of an enum constant.