Package org.openstreetmap.josm.io.nmea
Enum Sentence
- java.lang.Object
-
- java.lang.Enum<Sentence>
-
- org.openstreetmap.josm.io.nmea.Sentence
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Sentence>
public enum Sentence extends java.lang.Enum<Sentence>
An NMEA sentence consists of a start delimiter, followed by a comma-separated sequence of fields, followed by the character * (ASCII 42), the checksum and an end-of-line marker. The start delimiter is normally $ (ASCII 36).Most GPS sensors emit only RMC, GGA, GSA, GSV, GLL, VTG, and (rarely) ZDA. Newer ones conforming to NMEA 3.x may emit GBS as well. Other NMEA sentences are usually only emitted by high-end maritime navigation systems.
- Since:
- 12421
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GBS
GBS - GPS Satellite Fault DetectionGGA
GGA - Global Positioning System Fix DataGLL
GLL - Geographic Position - Latitude/LongitudeGSA
GSA - GPS DOP and active satellitesGST
GST - GPS Pseudorange Noise StatisticsGSV
GSV - Satellites in viewRMC
RMC - Recommended Minimum Navigation InformationVTG
VTG - Track made good and Ground speedZDA
ZDA - Time & Date - UTC, day, month, year and local time zone
-
Constructor Summary
Constructors Modifier Constructor Description private
Sentence()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Sentence
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Sentence[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GBS
public static final Sentence GBS
GBS - GPS Satellite Fault Detection1 2 3 4 5 6 7 8 9 | | | | | | | | | $--GBS,hhmmss.ss,x.x,x.x,x.x,x.x,x.x,x.x,x.x*hh
Field Number:- UTC time of the GGA or GNS fix associated with this sentence
- Expected error in latitude (meters)
- Expected error in longitude (meters)
- Expected error in altitude (meters)
- PRN of most likely failed satellite
- Probability of missed detection for most likely failed satellite
- Estimate of bias in meters on most likely failed satellite
- Standard deviation of bias estimate
- Checksum
-
GGA
public static final Sentence GGA
GGA - Global Positioning System Fix Data11 1 2 3 4 5 6 7 8 9 10 | 12 13 14 15 | | | | | | | | | | | | | | | $--GGA,hhmmss.ss,llll.ll,a,yyyyy.yy,a,x,xx,x.x,x.x,M,x.x,M,x.x,xxxx*hh
Field Number:- Universal Time Coordinated (UTC)
- Latitude
- N or S (North or South)
- Longitude
- E or W (East or West)
- GPS Quality Indicator,
- 0 - fix not available,
- 1 - GPS fix,
- 2 - Differential GPS fix (values above 2 are 2.3 features)
- 3 = PPS fix
- 4 = Real Time Kinematic
- 5 = Float RTK
- 6 = estimated (dead reckoning)
- 7 = Manual input mode
- 8 = Simulation mode
- Number of satellites in view, 00 - 12
- Horizontal Dilution of precision (meters)
- Antenna Altitude above/below mean-sea-level (geoid) (in meters)
- Units of antenna altitude, meters
- Geoidal separation, the difference between the WGS-84 earth ellipsoid and mean-sea-level (geoid), "-" means mean-sea-level below ellipsoid
- Units of geoidal separation, meters
- Age of differential GPS data, time in seconds since last SC104 type 1 or 9 update, null field when DGPS is not used
- Differential reference station ID, 0000-1023
- Checksum
-
GSA
public static final Sentence GSA
GSA - GPS DOP and active satellites1 2 3 14 15 16 17 18 | | | | | | | | $--GSA,a,a,x,x,x,x,x,x,x,x,x,x,x,x,x,x,x.x,x.x,x.x*hh
Field Number:- Selection mode: M=Manual, forced to operate in 2D or 3D, A=Automatic, 3D/2D
- Mode (1 = no fix, 2 = 2D fix, 3 = 3D fix)
- ID of 1st satellite used for fix
- ID of 2nd satellite used for fix
- ID of 3rd satellite used for fix
- ID of 4th satellite used for fix
- ID of 5th satellite used for fix
- ID of 6th satellite used for fix
- ID of 7th satellite used for fix
- ID of 8th satellite used for fix
- ID of 9th satellite used for fix
- ID of 10th satellite used for fix
- ID of 11th satellite used for fix
- ID of 12th satellite used for fix
- PDOP
- HDOP
- VDOP
- Checksum
-
GSV
public static final Sentence GSV
GSV - Satellites in view1 2 3 4 5 6 7 n | | | | | | | | $--GSV,x,x,x,x,x,x,x,...*hh
Field Number:- total number of GSV messages to be transmitted in this group
- 1-origin number of this GSV message within current group
- total number of satellites in view (leading zeros sent)
- satellite PRN number (leading zeros sent)
- elevation in degrees (00-90) (leading zeros sent)
- azimuth in degrees to true north (000-359) (leading zeros sent)
- SNR in dB (00-99) (leading zeros sent) more satellite info quadruples like 4-7 n) checksum
-
GLL
public static final Sentence GLL
GLL - Geographic Position - Latitude/Longitude1 2 3 4 5 6 7 8 | | | | | | | | $--GLL,llll.ll,a,yyyyy.yy,a,hhmmss.ss,a,m,*hh
Field Number:- Latitude
- N or S (North or South)
- Longitude
- E or W (East or West)
- Universal Time Coordinated (UTC)
- Status A - Data Valid, V - Data Invalid
- FAA mode indicator (NMEA 2.3 and later)
- Checksum
-
GST
public static final Sentence GST
GST - GPS Pseudorange Noise Statistics1 2 3 4 5 6 7 8 9 | | | | | | | | | $ --GST,hhmmss.ss,x,x,x,x,x,x,x*hh
Field Number:- UTC time of associated GGA fix
- Total RMS standard deviation of ranges inputs to the navigation solution
- Standard deviation (meters) of semi-major axis of error ellipse
- Standard deviation (meters) of semi-minor axis of error ellipse
- Orientation of semi-major axis of error ellipse (true north degrees)
- Standard deviation (meters) of latitude error
- Standard deviation (meters) of longitude error
- Standard deviation (meters) of altitude error
- Checksum
-
RMC
public static final Sentence RMC
RMC - Recommended Minimum Navigation Information12 1 2 3 4 5 6 7 8 9 10 11| 13 | | | | | | | | | | | | | $--RMC,hhmmss.ss,A,llll.ll,a,yyyyy.yy,a,x.x,x.x,xxxx,x.x,a,m,*hh
Field Number:- UTC Time
- Status, V=Navigation receiver warning A=Valid
- Latitude
- N or S
- Longitude
- E or W
- Speed over ground, knots
- Track made good, degrees true
- Date, ddmmyy
- Magnetic Variation, degrees
- E or W
- FAA mode indicator (NMEA 2.3 and later)
- Checksum
-
VTG
public static final Sentence VTG
VTG - Track made good and Ground speed1 2 3 4 5 6 7 8 9 10 | | | | | | | | | | $--VTG,x.x,T,x.x,M,x.x,N,x.x,K,m,*hh
Field Number:- Track Degrees
- T = True
- Track Degrees
- M = Magnetic
- Speed Knots
- N = Knots
- Speed Kilometers Per Hour
- K = Kilometers Per Hour
- FAA mode indicator (NMEA 2.3 and later)
- Checksum
-
ZDA
public static final Sentence ZDA
ZDA - Time & Date - UTC, day, month, year and local time zone1 2 3 4 5 6 7 | | | | | | | $--ZDA,hhmmss.ss,xx,xx,xxxx,xx,xx*hh
Field Number:- UTC time (hours, minutes, seconds, may have fractional subsecond)
- Day, 01 to 31
- Month, 01 to 12
- Year (4 digits)
- Local zone description, 00 to +- 13 hours
- Local zone minutes description, apply same sign as local hours
- Checksum
-
-
Constructor Detail
-
Sentence
private Sentence()
-
-
Method Detail
-
values
public static Sentence[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Sentence c : Sentence.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Sentence valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-