DJI Mobile SDK Documentation

      class GPSData

      @EXClassNullAway
      class GPSData
      Package:dji.common.remotecontroller
      SDK Key:RemoteControllerKey.GPS_DATA
      Description:

      Remote Controller's GPS data. Only supported by Remote Controller using DJI Lightbridge.

      Class Members:
      method
      method getTime
      Time getTime()
      Package:dji.common.remotecontroller
      Description:

      The Remote Controller's GPS time.

      Return:
      TimeAn instance of getTime.
      method getLocation
      GPSLocation getLocation()
      Package:dji.common.remotecontroller
      Description:

      The Remote Controller's location.

      Return:
      GPSLocationAn instance of GPSLocation.
      method getEastSpeed
      float getEastSpeed()
      Package:dji.common.remotecontroller
      Description:

      The Remote Controller's speed in the East direction in meters/second. A negative speed means the Remote Controller is moving in the West direction.

      Return:
      floatA float value.
      method getNorthSpeed
      float getNorthSpeed()
      Package:dji.common.remotecontroller
      Description:

      The Remote Controller's speed in the North direction in meters/second. A negative speed means the Remote Controller is moving in the South direction.

      Return:
      floatA float value.
      method getSatelliteCount
      int getSatelliteCount()
      Package:dji.common.remotecontroller
      Description:

      The number of GPS satellites the Remote Controller detects.

      Return:
      intAn int value.
      method getLocationAccuracy
      float getLocationAccuracy()
      Package:dji.common.remotecontroller
      Description:

      The the margin of error, in meters, for the GPS location.

      Return:
      floatA float value.
      method
      method isValid
      boolean isValid()
      Package:dji.common.remotecontroller
      Description:

      true if the GPS data is valid. The data is not valid if there are too few satellites or the signal strength is too low.

      Return:
      booleanA boolean value.
      class