DJI Mobile SDK Documentation

      class AirSenseAirplaneState

      class AirSenseAirplaneState implements DJIValue, JNIProguardKeepTag, ByteStream
      Package:dji.sdk.keyvalue.value.flightcontroller
      Description:

      The AirSense state of an airplane.

      Class Members:

      Members

      method
      method getCode
      String getCode()
      Package:dji.sdk.keyvalue.value.flightcontroller
      Description:

      Gets the unique code (ICAO) of the airplane.

      Return:
      StringReturns The unique code (ICAO) of the airplane.
      method getWarningLevel
      AirSenseWarningLevel getWarningLevel()
      Package:dji.sdk.keyvalue.value.flightcontroller
      Description:

      Gets the warning level determined by DJI AirSense system.

      Return:
      AirSenseWarningLevelReturns the warning level determined by DJI AirSense system.
      method getRelativeDirection
      AirSenseDirection getRelativeDirection()
      Package:dji.sdk.keyvalue.value.flightcontroller
      Description:

      Gets the direction of the airplane relative to the DJI aircraft.

      Return:
      AirSenseDirectionReturns the direction of the airplane relative to the DJI aircraft.
      method getHeading
      Double getHeading()
      Package:dji.sdk.keyvalue.value.flightcontroller
      Description:

      Gets the heading of the airplane.

      Return:
      DoubleReturns the heading of the airplane.
      method getDistance
      Integer getDistance()
      Package:dji.sdk.keyvalue.value.flightcontroller
      Description:

      Gets the distance between the airplane and DJI aircraft in meters.

      Return:
      IntegerReturns the distance between the airplane and DJI aircraft in meters.
      method getLatitude
      Double getLatitude()
      Package:dji.sdk.keyvalue.value.flightcontroller
      Description:

      Gets the latitude of the airplane's position.

      Return:
      DoubleReturns the latitude of the airplane's position.
      method getLongitude
      Double getLongitude()
      Package:dji.sdk.keyvalue.value.flightcontroller
      Description:

      Gets the longitude of the airplane's position.

      Return:
      DoubleReturns the longitude of the airplane's position.
      method getAbsoluteAltitude
      Double getAbsoluteAltitude()
      Package:dji.sdk.keyvalue.value.flightcontroller
      Description:

      Gets the altitude of the airplane, unit: meter. For airplane of flight safety, this is the altitude after offset confusion, for reference only.

      Return:
      DoubleReturns the altitude of the airplane.
      method getAltitude
      Double getAltitude()
      Package:dji.sdk.keyvalue.value.flightcontroller
      Description:

      Gets the relative altitude between the airplane and the DJI aircraft, unit: meter. For reasons of airplane flight safety, this is the altitude after offset confusion, for reference only.

      Return:
      DoubleReturns the relative altitude between the airplane and the DJI aircraft