DJI Mobile SDK Documentation

      class InitializationData

      @EXClassNullAway
      final class InitializationData
      Package:dji.common.flightcontroller.simulator
      SDK Key:FlightControllerKey.START_SIMULATOR
      Description:

      Data to initialize the simulator with.

      Class Members:
      method createInstance
      static InitializationData createInstance(LocationCoordinate2D location,
      @IntRange(from=2,to=150) int updateFrequency,
      @IntRange(from=0,to=20) int satelliteCount)
      Package:dji.common.flightcontroller.simulator
      Description:

      Create the initialization data for the simulator.

      Input Parameters:
      LocationCoordinate2D locationSimulator coordinate latitude and longitude in degrees.
      @IntRange(from=2,to=150) int updateFrequencyAircraft simulator state push frequency in Hz with range [2, 150]. A setting of 10 Hz will result in delegate method being called, 10 times per second.
      @IntRange(from=0,to=20) int satelliteCountThe initial number of GPS satellites with range [0, 20].
      Return:
      static InitializationDataInitialization data object.
      method getUpdateFrequency
      int getUpdateFrequency()
      Package:dji.common.flightcontroller.simulator
      Description:

      Aircraft simulator state push frequency in Hz with range [2, 150]. A setting of 10 Hz will result in onUpdate being called 10 times per second.

      Return:
      intFrequency.
      method getSatelliteCount
      int getSatelliteCount()
      Package:dji.common.flightcontroller.simulator
      Description:

      The initial number of GNSS satellites with range [0, 20]

      Return:
      intNumber of satellites.
      method getLocation
      LocationCoordinate2D getLocation()
      Package:dji.common.flightcontroller.simulator
      Description:

      Location to begin simulation.

      Return:
      LocationCoordinate2DLocation object