DJI Mobile SDK Documentation

      class InitializationSettings

      final class InitializationSettings
      Package:dji.v5.manager.aircraft.simulator
      Description:

      Simulator initialization settings class, which is used to initialize simulator parameters.

      Supported since MSDK 5.0.0

      Class Members:
      method createInstance
      static InitializationSettings createInstance(LocationCoordinate2D location,
      @IntRange(from=0,to=20) int satelliteCount)
      Package:dji.v5.manager.aircraft.simulator
      Description:

      The initialized method of simulator parameter.

      Supported since MSDK 5.0.0

      Input Parameters:
      LocationCoordinate2D locationThe initial coordinates of the aircraft in the simulator.
      @IntRange(from=0,to=20) int satelliteCountThe initial number of satellites of the aircraft in the simulator. The range of satellite numbers is [0, 20].
      Return:
      static InitializationSettingsReturn the instance of simulator.
      method getLocation
      LocationCoordinate2D getLocation()
      Package:dji.v5.manager.aircraft.simulator
      Description:

      To get the initial coordinates of the aircraft in the simulator.

      Supported since MSDK 5.0.0

      Return:
      LocationCoordinate2DReturn the initial coordinates of the aircraft in the simulator.
      method getSatelliteCount
      int getSatelliteCount()
      Package:dji.v5.manager.aircraft.simulator
      Description:

      To get the initial number of satellites of the aircraft in the simulator.

      Supported since MSDK 5.0.0

      Return:
      intReturn the initial number of satellites of the aircraft in the simulator.