com.eurotech.framework.position
Class NmeaPosition

java.lang.Object
  extended by com.eurotech.framework.position.NmeaPosition

public class NmeaPosition
extends Object

The NmeaPosition class is similar to org.osgi.util.position.Position but with different units and more fields.
The following fields are equivalent to org.osgi.util.position.Position fields but in more typical units (degrees instead of radians):

  • Longitude in degrees
  • Latitude in degrees
  • Track in degrees
  • Altitude in meters
  • Speed in km/h
  • Speed in mph

  • It adds to the OSGI Position class the following fields :
  • Fix Quality (from GPGGA)
  • Number of Satellites (from GPGGA)
  • DOP : Horizontal dilution of position (from GPGGA)
  • 3D fix (from GPGSA)
  • PRNs of sats used for fix (from GPGSA)
  • PDOP : Dilution of precision (from GPGSA)
  • HDOP : Horizontal Dilution of precision (from GPGSA)
  • VDOP : Vertical Dilution of precision (from GPGSA)

  • Constructor Summary
    NmeaPosition(double lat, double lon, double alt, double speed, double track)
               
    NmeaPosition(double lat, double lon, double alt, double speed, double track, int fixQuality, int nrSatellites, double DOP, double PDOP, double HDOP, double VDOP, int fix3D)
               
     
    Method Summary
     int get3Dfix()
               
     double getAltitude()
              Return the altitude in meters
     double getDOP()
               
     int getFixQuality()
               
     double getHDOP()
               
     double getLatitude()
              Return the latitude in degrees
     double getLongitude()
              Return the longitude in degrees
     int getNrSatellites()
               
     double getPDOP()
               
     double getSpeed()
              Return the speed in m/s
     double getSpeedKmh()
              Return the speed in km/h
     double getSpeedMph()
              Return the speed in mph
     double getTrack()
              Return the track in degrees
     double getVDOP()
               
     void set3Dfix(int m_3Dfix)
               
     void setAltitude(double l_altitude)
               
     void setDOP(double m_DOP)
               
     void setFixQuality(int m_fixQuality)
               
     void setHDOP(double m_HDOP)
               
     void setLatitude(double l_latitude)
               
     void setLongitude(double l_longitude)
               
     void setNrSatellites(int m_nrSatellites)
               
     void setPDOP(double m_PDOP)
               
     void setSpeed(double l_speed)
               
     void setTrack(double l_track)
               
     void setVDOP(double m_VDOP)
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    NmeaPosition

    public NmeaPosition(double lat,
                        double lon,
                        double alt,
                        double speed,
                        double track)

    NmeaPosition

    public NmeaPosition(double lat,
                        double lon,
                        double alt,
                        double speed,
                        double track,
                        int fixQuality,
                        int nrSatellites,
                        double DOP,
                        double PDOP,
                        double HDOP,
                        double VDOP,
                        int fix3D)
    Method Detail

    getLatitude

    public double getLatitude()
    Return the latitude in degrees


    setLatitude

    public void setLatitude(double l_latitude)

    getLongitude

    public double getLongitude()
    Return the longitude in degrees


    setLongitude

    public void setLongitude(double l_longitude)

    getAltitude

    public double getAltitude()
    Return the altitude in meters


    setAltitude

    public void setAltitude(double l_altitude)

    getSpeedKmh

    public double getSpeedKmh()
    Return the speed in km/h


    getSpeedMph

    public double getSpeedMph()
    Return the speed in mph


    getSpeed

    public double getSpeed()
    Return the speed in m/s


    setSpeed

    public void setSpeed(double l_speed)

    getTrack

    public double getTrack()
    Return the track in degrees


    setTrack

    public void setTrack(double l_track)

    getFixQuality

    public int getFixQuality()

    setFixQuality

    public void setFixQuality(int m_fixQuality)

    getNrSatellites

    public int getNrSatellites()

    setNrSatellites

    public void setNrSatellites(int m_nrSatellites)

    getDOP

    public double getDOP()

    setDOP

    public void setDOP(double m_DOP)

    getPDOP

    public double getPDOP()

    setPDOP

    public void setPDOP(double m_PDOP)

    getHDOP

    public double getHDOP()

    setHDOP

    public void setHDOP(double m_HDOP)

    getVDOP

    public double getVDOP()

    setVDOP

    public void setVDOP(double m_VDOP)

    get3Dfix

    public int get3Dfix()

    set3Dfix

    public void set3Dfix(int m_3Dfix)


    Copyright © 2013. All Rights Reserved.