DJI Mobile SDK Documentation

      class SimulatorState

      class SimulatorState
      Package:dji.v5.manager.aircraft.simulator
      Description:

      Simulator status.

      Supported since MSDK 5.0.0

      Class Members:

      Members

      method areMotorsOn
      boolean areMotorsOn()
      Package:dji.v5.manager.aircraft.simulator
      Description:

      Return whether the aircraft motor in the simulator has started to spin.

      Return:
      booleantrue means the aircraft motor in the simulator has started to spin.
      method
      method isFlying
      boolean isFlying()
      Package:dji.v5.manager.aircraft.simulator
      Description:

      Return whether the aircraft in the simulator is in flight.

      Return:
      booleantrue means the aircraft in the simulator is in flight.
      method
      method getPitch
      float getPitch()
      Package:dji.v5.manager.aircraft.simulator
      Description:

      To get the pitch angle of the aircraft in the simulator. Unit: degree.

      Return:
      floatReturn the pitch angle of the aircraft in the simulator.
      method
      method getRoll
      float getRoll()
      Package:dji.v5.manager.aircraft.simulator
      Description:

      To get the roll angle of the aircraft in the simulator. Unit: degree.

      Return:
      floatReturn the roll angle of the aircraft in the simulator.
      method
      method getYaw
      float getYaw()
      Package:dji.v5.manager.aircraft.simulator
      Description:

      To get the yaw angle of the aircraft in the simulator. Unit: degree.

      Return:
      floatReturn the yaw angle of the aircraft in the simulator.
      method getPositionX
      float getPositionX()
      Package:dji.v5.manager.aircraft.simulator
      Description:

      To get the east-west distance from the aircraft's current position in the simulator to the aircraft's initial position. Unit: meter. East is positive. The North East coordinate system is used.

      Return:
      floatReturn the east-west distance from the aircraft's current position in the simulator to the aircraft's initial position.
      method getPositionY
      float getPositionY()
      Package:dji.v5.manager.aircraft.simulator
      Description:

      To get the north-south distance from the aircraft's current position in the simulator to the aircraft's initial position. Unit: meter. North is positive. The North East coordinate system is used.

      Return:
      floatReturn the north-south distance from the aircraft's current position in the simulator to the aircraft's initial position.
      method getPositionZ
      float getPositionZ()
      Package:dji.v5.manager.aircraft.simulator
      Description:

      To get the vertical distance from the aircraft's current position in the simulator to the aircraft's initial position. Unit: meter. If the altitude of the aircraft is higher than the altitude of the initial position, the value should be negative.

      Return:
      floatReturn the vertical distance from the aircraft's current position in the simulator to the aircraft's initial position.
      method getLocation
      LocationCoordinate2D getLocation()
      Package:dji.v5.manager.aircraft.simulator
      Description:

      To get the coordinates of the current position of the aircraft in the simulator.

      Return:
      LocationCoordinate2DReturn the coordinates of the current position of the aircraft in the simulator.