DJI Mobile SDK Documentation

      class AirSenseAirplaneState

      @EXClassNullAway
      class AirSenseAirplaneState
      Package:dji.common.flightcontroller.adsb
      SDK Key:FlightControllerKey.AIR_SENSE_AIRPLANE_STATES
      Description:

      The AirSense state of an airplane.

      DJI AirSense only sends out warnings of nearby civil aircraft under certain circumstances; it will NOT control DJI aircraft to avoid other aircraft automatically. Make sure to fly with your aircraft within visual line of sight at all times, and always fly with caution. After receiving warnings, lower your aircraft to a safe height. In addition, DJI AirSense has the following limitations:

      1. DJI AirSense can only receive messages sent from civil aircraft equipped with an ADS-B out device under 1090ES (RTCA DO-260) or UAT (RTCA Do-282) standards. For civil aircraft without ADS-B outs or with malfunctioning ADS-B outs, DJI AirSense cannot receive related broadcasted messages or send out warnings.

      2. When there are obstacles in between a civil aircraft and DJI aircraft, DJI AirSense will fail to receive ADS-B messages sent from civil aircraft or to send out warnings.

      3. DJI AirSense may fail to receive ADS-B messages sent from civil aircraft or send out warnings due to ever changing circumstances and interference. It is highly recommended to fly with caution and stay aware of your surroundings during flight.

      4. DJI AirSense cannot send out warnings when the DJI aircraft cannot accurately determine its location.

      5. DJI AirSense cannot receive ADS-B messages sent from civil aircraft or send out warnings when it is disabled or misconfigured.

      Class Members:
      method
      method getCode
      String getCode()
      Package:dji.common.flightcontroller.adsb
      Description:

      The unique code (ICAO) of the airplane.

      Return:
      StringString of the unique code (ICAO).
      method getWarningLevel
      AirSenseWarningLevel getWarningLevel()
      Package:dji.common.flightcontroller.adsb
      Description:

      The warning level determined by DJI AirSense system.

      Return:
      AirSenseWarningLevelAn enum value of AirSenseWarningLevel.
      method getRelativeDirection
      AirSenseDirection getRelativeDirection()
      Package:dji.common.flightcontroller.adsb
      Description:

      The direction of the airplane relative to the DJI aircraft.

      Return:
      AirSenseDirectionAn enum value of AirSenseDirection.
      method getHeading
      float getHeading()
      Package:dji.common.flightcontroller.adsb
      Description:

      The heading of the airplane.

      Return:
      floatA float value of heading.
      method getDistance
      int getDistance()
      Package:dji.common.flightcontroller.adsb
      Description:

      The distance between the airplane and DJI aircraft in meters.

      Return:
      intAn int value of distance.
      interface
      interface Callback
      interface Callback
      Package:dji.common.flightcontroller.adsb
      Description:

      An interface for obtaining AirSenseAirplaneState infos.

      Interface Methods:

      Callback Method

      method
      method onUpdate
      void onUpdate(@NonNull AirSenseAirplaneState[] information)
      Package:dji.common.flightcontroller.adsb
      Description:

      Callback method of Air Sense Airplane State.

      Input Parameters:
      @NonNull AirSenseAirplaneState[] informationArray of AirSenseAirplaneState.
      enum AirSenseDirection
      @EXClassNullAway
      enum AirSenseDirection
      Package:dji.common.flightcontroller.adsb
      Description:

      Directions.

      Enum Members:
      NORTHNorth.
      NORTH_EASTNorth east.
      EASTEast.
      SOUTH_EASTSouth east.
      SOUTHSouth.
      SOUTH_WESTSouth west.
      WESTWest.
      NORTH_WESTNorth west.
      UNKNOWNUnknown.
      Class Members: