View Javadoc

1   /*
2    * Trip Tracker, a real-time position tracking system for the Internet.
3    * Copyright (C) 2006  Team Trip Tracker
4    *
5    * This program is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU General Public License as published by the
7    * Free Software Foundation; either version 2 of the License, or (at your
8    * option) any later version.
9    *
10   * This program is distributed in the hope that it will be useful, but
11   * WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13   * General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License along
16   * with this program; if not, write to the Free Software Foundation, Inc.,
17   * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18   */
19  
20  package triptracker.client.gps.core;
21  
22  import static triptracker.client.gps.core.NMEAManufacturerID.*;
23  
24  public enum NMEASentenceID {
25  		AAM ("Waypoint Arrival Alarm", null),
26  		ALM ("GPS Almanac Data", null),
27  		APB ("Autopilot Sentence 'B'", null),
28  		ASD ("Autopilot System Data", null),
29  		BEC ("Bearing & Distance to Waypoint - Dead Reckoning", null),
30  		BOD ("Bearing - Origin to Destination", null),
31  		BWC ("Bearing & Distance to Waypoint - Great Circle", null),
32  		BWR ("Bearing & Distance to Waypoint - Rhumb Line", null),
33  		BWW ("Bearing, Waypoint to Waypoint", null),
34  		DBT ("Depth Below Transducer", null),
35  		DCN ("Decca Position", null),
36  		DPT ("Depth", null),
37  		FSI ("Frequency Set Information", null),
38  		GGA ("Global Positioning System Fix Data", null),
39  		GLC ("Geographic Position, Loran-C", null),
40  		GLL ("Geographic Position, Latitude/Longitude", null),
41  		GSA ("GPS DOP and Active Satellites", null),
42  		GSV ("GPS Satellites in View", null),
43  		GXA ("TRANSIT Position", null),
44  		HDG ("Heading, Deviation & Variation", null),
45  		HDM ("Heading, Magnetic", null),
46  		HDT ("Heading, True", null),
47  		HSC ("Heading Steering Command", null),
48  		LCD ("Loran-C Signal Data", null),
49  		MTW ("Water Temperature", null),
50  		MWV ("Wind Speed and Angle", null),
51  		OLN ("Omega Lane Numbers", null),
52  		OSD ("Own Ship Data", null),
53  		// R00 is a Garmin proprietary sentence. Replace with RTE.
54  //		R00 ("List of waypoint IDs in currently active route"), 
55  		RMA ("Recommend Minimum Specific Loran-C Data", null),
56  		RMB ("Recommend Minimum Navigation Information", null),
57  		RMC ("Recommend Minimum Specific GPS/TRANSIT Data", null),
58  		ROT ("Rate of Turn", null),
59  		RPM ("Revolutions", null),
60  		RSA ("Rudder Sensor Angle", null),
61  		RSD ("RADAR System Data", null),
62  		RTE ("Routes", null),
63  		SFI ("Scanning Frequency Information", null),
64  		STN ("Multiple Data ID", null),
65  		TRF ("TRANSIT Fix Data", null),
66  		TTM ("Tracked Target Message", null),
67  		VBW ("Dual Ground/Water Speed", null),
68  		VDR ("Set and Drift", null),
69  		VHW ("Water Speed and Heading", null),
70  		VLW ("Distance Traveled through the Water", null),
71  		VPW ("Speed, Measured Parallel to Wind", null),
72  		VTG ("Track Made Good and Ground Speed", null),
73  		VWR ("Relative wind direction and speed", null),
74  		WCV ("Waypoint Closure Velocity", null),
75  		WDC ("Distance to Waypoint", null),
76  		WDR ("Waypoint Distance, Rhumb Line", null),
77  		WNC ("Distance, Waypoint to Waypoint", null),
78  		WPL ("Waypoint Loacation", null),
79  		XDR ("Transducer Measurements", null),
80  		XTE ("Cross-Track Error, Measured", null),
81  		XTR ("Cross-Track Error, Dead Reckoning", null),
82  		ZDA ("Time & Date", null),
83  		ZFO ("UTC & Time from Origin Waypoint", null),
84  		ZTG ("UTC & Time to Destination Waypoint", null),
85  		
86  		/* Garmin proprietary sentences */
87  		GRME ("", GRM), /* $PGRME,,M,,M,,M*00 */
88  		GRMZ ("", GRM), /* $PGRMZ,,f,1*29 */
89  		GRMM ("", GRM), /* $PGRMM,WGS 84*06 */
90  		
91  		/* Starlink proprietary sentences */
92  		SLIB ("", SLI);
93          
94          final String description;
95          final NMEAManufacturerID manufacturer;
96          
97          NMEASentenceID(String description, NMEAManufacturerID manufacturer) {
98          	this.description = description;
99          	this.manufacturer = manufacturer;
100         }
101         
102         public String getDescription() {
103         	return description;
104         }
105 
106 	public NMEAManufacturerID getManufacturer() {
107 		return manufacturer;
108 	}
109 }