java.lang.Object | |
↳ | dji.common.flightcontroller.DJISimulatorStateData |
Aircraft simulator state data.
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
|
true
if motors are on in the simulator.
Simulated latitude of the aircraft.
Simulated longitude of the aircraft.
Simulated aircraft pitch with range [-30, 30].
Simulated aircraft X (East-West) distance from initial simulator location where East is positive and North-East-Down coordinate system is used.
Simulated aircraft Y (North-South) distance from initial simulator location where North is positive and North-East-Down coordinate system is used.
Simulated aircraft Z (Vertical direction). The value should be negative if the height of aircraft is higher than initial home point's height.
Simulated aircraft roll with range [-30, 30].
Simulated aircraft yaw with range [-180, 180].
true
if aircraft is flying in the simulator.