public class

DJISimulatorStateData

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

Class Overview

Aircraft simulator state data.

Summary

Public Constructors
DJISimulatorStateData()
Public Methods
boolean areMotorsOn()
true if motors are on in the simulator.
double getLatitude()
Simulated latitude of the aircraft.
double getLongitude()
Simulated longitude of the aircraft.
float getPitch()
Simulated aircraft pitch with range [-30, 30].
float getPositionX()
Simulated aircraft X (East-West) distance from initial simulator location where East is positive and North-East-Down coordinate system is used.
float getPositionY()
Simulated aircraft Y (North-South) distance from initial simulator location where North is positive and North-East-Down coordinate system is used.
float getPositionZ()
Simulated aircraft Z (Vertical direction).
float getRoll()
Simulated aircraft roll with range [-30, 30].
float getYaw()
Simulated aircraft yaw with range [-180, 180].
boolean isFlying()
true if aircraft is flying in the simulator.
void setPositionX(float positionX)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DJISimulatorStateData ()

Public Methods

public boolean areMotorsOn ()

true if motors are on in the simulator.

public double getLatitude ()

Simulated latitude of the aircraft.

public double getLongitude ()

Simulated longitude of the aircraft.

public float getPitch ()

Simulated aircraft pitch with range [-30, 30].

public float getPositionX ()

Simulated aircraft X (East-West) distance from initial simulator location where East is positive and North-East-Down coordinate system is used.

public float getPositionY ()

Simulated aircraft Y (North-South) distance from initial simulator location where North is positive and North-East-Down coordinate system is used.

public float getPositionZ ()

Simulated aircraft Z (Vertical direction). The value should be negative if the height of aircraft is higher than initial home point's height.

public float getRoll ()

Simulated aircraft roll with range [-30, 30].

public float getYaw ()

Simulated aircraft yaw with range [-180, 180].

public boolean isFlying ()

true if aircraft is flying in the simulator.

public void setPositionX (float positionX)