Class GPSData

java.lang.Object
se.hendeby.sensordata.SensorData
se.hendeby.sensordata.GPSData

public class GPSData extends SensorData
GPS data class.
  • Constructor Details

    • GPSData

      public GPSData(long time, float[] values)
      Constructor.
      Parameters:
      time - Timestamp [ms].
      values - Measured GPS position in lat, long, and altitude..
    • GPSData

      public GPSData(long time, float lat, float lon, float z)
      Constructor.
      Parameters:
      time - Timestamp [ms].
      lat - Latitude [degree].
      lon - Longitude [degree].
      z - Altitude [m].
  • Method Details

    • getLat

      public float getLat()
      Latitude getter.
      Returns:
      The measured latitude.
    • getLon

      public float getLon()
      Longitude getter.
      Returns:
      The measured longitude.
    • getZ

      public float getZ()
      Altitude getter.
      Returns:
      The measured altitude.