public class

DJIAttitude

extends Object
java.lang.Object
   ↳ dji.common.flightcontroller.DJIAttitude

Class Overview

The attitude of the aircraft where the pitch, roll, and yaw values will be in the range of [-180, 180]. If the values of the pitch, roll, and yaw are 0, the aircraft will be hovering level with a True North heading.

Summary

Fields
public double pitch The pitch value of the aircraft: forwards is positive, backwards is negative.
public double roll The roll value of the aircraft: forwards is positive, backwards is negative.
public double yaw The yaw value of the aircraft.
Public Constructors
DJIAttitude(double pitch, double roll, double yaw)
Constructor.
DJIAttitude()
Constructor.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public double pitch

The pitch value of the aircraft: forwards is positive, backwards is negative. Units are in degrees.

public double roll

The roll value of the aircraft: forwards is positive, backwards is negative. Units are in degrees.

public double yaw

The yaw value of the aircraft. It depends on the heading of the aircraft, if the aircraft is heading to the north, the value of it will be 0. and the value of it will increase clockwise.

Public Constructors

public DJIAttitude (double pitch, double roll, double yaw)

Constructor.

Parameters
pitch Pitch value to be set.
roll Roll value to be set.
yaw Yaw value to be set.

public DJIAttitude ()

Constructor.