⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 garmin_api.h

📁 It is a software to decode information received by a normal GPS like GARMIN, UBLOX if it sends NMEA
💻 H
📖 第 1 页 / 共 2 页
字号:
typedef struct GPALM_STC{	/*          Almanac Information (ALM)	The $GPALM sentence can be used to initialize the GPS sensor’s stored almanac information in the	unlikely event of non-volatile memory loss or after storing longer than six months without tracking GPS	satellites.	 $GPALM,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12>,<13>,<14>,<15>*hh<CR><LF>    <1>   Total number of ALM sentences to be transmitted by the GPS sensor during almanac download.          This field can be null or any number when sending almanac to the GPS sensor.    <2>   Number of current ALM sentence. This field can be null or any number when sending almanac          to the GPS sensor.    <3>   Satellite PRN number, 01 to 32    <4>   GPS week number    <5>   SV health, bits 17–24 of each almanac page    <6>   Eccentricity    <7>   Almanac reference time    <8>   Inclination angle    <9>   Rate of right ascension    <10>  Root of semi major axis    <11>  Omega, argument of perigee    <12>  Longitude of ascension node    <13>  Mean anomaly    <14>  af0 clock parameter    <15>  af1 clock parameter	 */	char n_1[50];	char n_2[50];	char n_3[50];	char n_4[50];	char n_5[50];	char n_6[50];	char n_7[50];	char n_8[50];	char n_9[50];	char n_10[50];	char n_11[50];	char n_12[50];	char n_13[50];	char n_14[50];	char n_15[50];	struct GPALM_STC *prox;}GPALM_TYP;typedef struct PGRMI_STC{	/*           Sensor Initialization Information (PGRMI)	The $PGRMI sentence provides information used to initialize the GPS sensor’s set position and time used	for satellite acquisition. Receipt of this sentence by the GPS sensor causes the software to restart the	satellite acquisition process. If there are no errors in the sentence, it will be echoed upon receipt. If an error	is detected, the echoed PGRMI sentence will contain the current default values. Current PGRMI defaults	(with the exception of the Receiver Command, which is a command rather than a mode) can also be	obtained by sending $PGRMIE to the GPS sensor.	$PGRMI,<1>,<2>,<3>,<4>,<5>,<6>,<7>*hh<CR><LF>    <1>    Latitude, ddmm.mmm format for GPS 18 PC/LVC; ddmm.mmmmm format for GPS 18-           5Hz (leading zeros must be transmitted)    <2>    Latitude hemisphere, N or S    <3>    Longitude, ddmm.mmm format for GPS 18 PC/LVC; ddmm.mmmmm format for GPS 18-           5Hz (leading zeros must be transmitted)    <4>    Longitude hemisphere, E or W    <5>    Current UTC date, ddmmyy format    <6>    Current UTC time, hhmmss format for GPS 18 PC/LVC; hhmmss.s format for GPS 18-5Hz    <7>    Receiver Command, A = Auto Locate, R = Unit Reset	 */	char n_1[90];	char n_2[20];	char n_3[90];	char n_4[20];	char n_5[70];	char n_6[70];	char n_7[20];} PGRMI;typedef struct PGRMC_STC{	/*         Sensor Configuration Information (PGRMC)	The $PGRMC sentence provides information used to configure the GPS sensor’s operation. Configuration	parameters are stored in non-volatile memory and retained between power cycles. The GPS sensor will	echo this sentence upon its receipt if no errors are detected. If an error is detected, the echoed PGRMC	sentence will contain the current default values. Current default values can also be obtained by sending	$PGRMCE to the GPS sensor.	$PGRMC,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12>,<13>,<14>*hh<CR><LF>    <1>   Fix mode, A = automatic, 2 = 2D exclusively (host system must supply altitude),          3 = 3D exclusively    <2>   Altitude above/below mean sea level, -1500.0 to 18000.0 meters    <3>   Earth datum index. If the user datum index (96) is specified, fields <4> through <8> must          contain valid values. Otherwise, fields <4> through <8> must be null. Refer to Appendix A:          Earth Datum List for a list of earth datum and the corresponding earth datum index.    <4>   User earth datum semi-major axis, 6360000.000 to 6380000.000 meters (.001 meters          resolution)          User earth datum inverse flattening factor, 285.0 to 310.0 (10-9 resolution)    <5>    <6>   User earth datum delta x earth centered coordinate, -5000.0 to 5000.0 meters (1 meter          resolution)    <7>   User earth datum delta y earth centered coordinate, -5000.0 to 5000.0 meters (1 meter          resolution)    <8>   User earth datum delta z earth centered coordinate, -5000.0 to 5000.0 meters (1 meter          resolution)    <9>   Differential mode, A = automatic (output DGPS data when available, non-DGPS otherwise), D          = differential exclusively (output only differential fixes)    <10> NMEA 0183 Baud rate, 1 = 1200, 2 = 2400, 3 = 4800, 4 = 9600, 5 = 19200, 6 = 300, 7 = 600,          8 = 38400 (for GPS 18-5Hz only)    <11> Velocity filter, 0 = No filter, 1 = Automatic filter, 2–255 = Filter time constant          (for example, 10 = 10 second filter)    <12> Measurement Pulse Output, 1 = Disabled, 2 = Enabled    <13> Measurement Pulse Output pulse length, (n+1)*20 ms          For 18 LVC/PC n = 0 through 48 (max. 980 ms)          For GPS 18-5Hz n = 0 through 8 (max. 180 ms)          Example: n = 4 corresponds to a 100 ms wide pulse    <14> Dead reckoning valid time 1 to 30 sec. for the GPS 18 PC/LVC          or 0.2 to 30.0 sec. for the GPS 18-5Hz	 */	char n_1[20];	char n_2[80];	char n_3[50];	char n_4[20];	char n_5[80];	char n_6[80];	char n_7[80];	char n_8[80];	char n_9[20];	char n_10[20];	char n_11[30];	char n_12[20];	char n_13[30];	char n_14[50];} PGRMC;typedef struct PGRMC1_STC{	/*        Additional Sensor Configuration Information (PGRMC1)	The $PGRMC1 sentence provides additional information used to configure the GPS sensor operation.	Configuration parameters are stored in non-volatile memory and retained between power cycles. The GPS	sensor will echo this sentence upon its receipt if no errors are detected. If an error is detected, the echoed	PGRMC1 sentence will contain the current default values. Current default values can also be obtained by	sending $PGRMC1E to the GPS sensor.	$PGRMC1,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,<10>,<11>,<12>,<13>*hh<CR><LF>    <1>   NMEA 0183 output time 1 to 900 (sec). Not applicable to GPS 18-5Hz, which always outputs          data at 5 Hz (200 ms)    <2>   Binary Phase Output Data, 1 = Off, 2 = On.    <3>   Automatic Position Averaging when Stopped, 1 = Off, 2 = On    <4>   No Effect (DGPS beacon frequency: 0.0, 283.5 to 325.0 kHz in 0.5 kHz steps)    <5>   No Effect (DGPS beacon bit rate: 0, 25, 50, 100, or 200 bps)    <6>   No Effect (DGPS beacon scanning, 1 = Off, 2 = On)    <7>   NMEA 0183 version 2.30 mode indicator, 1 = Off, 2 = On    <8>   DGPS WAAS mode, W = WAAS Enabled, N = WAAS Disabled    <9>   Power Save Mode, P = Power Save mode, N = Normal    <10> Adaptive Transmission Enabled, 1 = Off, 2 = On    <11> Auto Power Off, 1 = Off, 2 = On    <12> Power On with External Charger, 1 = Off, 2 = On    <13> Measurement Pulse Output Auto Off Mode, 1 = Off, 2 = On	 */	char n_1[40];	char n_2[20];	char n_3[20];	char n_4[60];	char n_5[40];	char n_6[20];	char n_7[20];	char n_8[20];	char n_9[20];	char n_10[20];	char n_11[20];	char n_12[20];	char n_13[20];} PGRMC1;	typedef struct PGRMO_STC{	/*         Output Sentence Enable/Disable (PGRMO)	The $PGRMO sentence provides the ability to enable and disable specific output sentences. The following	sentences are enabled at the factory for the GPS 18 PC and LVC: GPGGA, GPGSA, GPGSV, GPRMC,	and PGRMT.	The following sentences are enabled at the factory for the GPS 18-5Hz: GPGGA, GPGSA, GPRMC,	GPUTG, and PGRMT.	$PGRMO,<1>,<2>*hh<CR><LF>    <1>   Target sentence description (for example, PGRMT, GPGSV, etc.)    <2>   Target sentence mode, where 0 = disable specified sentence, 1 = enable specified sentence, 2 =          disable all output sentences, 3 = enable all output sentences (except GPALM), 4 = restore          factory default output sentences	 */	char n_1[50];	char n_2[50];}PGRMO;typedef struct GPGGA_STC{	/*		Global Positioning System Fix Data (GGA)	 $GPGGA,<1>,<2>,<3>,<4>,<5>,<6>,<7>,<8>,<9>,M,<10>,M,<11>,<12>*hh<CR><LF>    <1>   UTC time of position fix, hhmmss format for GPS 18 PC or LVC; hhmmss.s format for GPS 18-          5Hz    <2>   Latitude, ddmm.mmmm format for GPS 18 PC/LVC; ddmm.mmmmm for GPS 18-5Hz          (leading zeros will be transmitted)    <3>   Latitude hemisphere, N or S    <4>   Longitude, dddmm.mmmm format for GPS 18 PC/LVC; dddmm.mmmmm for GPS 18-5Hz          (leading zeros will be transmitted)    <5>   Longitude hemisphere, E or W    <6>   GPS quality indication, 0 = fix not available, 1 = Non-differential GPS fix available, 2 =          Differential GPS (WAAS) fix available, 6 = Estimated    <7>   Number of satellites in use, 00 to 12 (leading zeros will be transmitted)    <8>   Horizontal dilution of precision, 0.5 to 99.9    <9>   Antenna height above/below mean sea level, -9999.9 to 99999.9 meters    <10>  Geoidal height, -999.9 to 9999.9 meters    <11>  Null (Differential GPS    <12>  Null (Differential Reference Station ID)	 */	char n_1[70];	char n_2[100];	char n_3[20];	char n_4[110];	char n_5[20];	char n_6[20];	char n_7[30];	char n_8[50];	char n_9[80];	char n_10[70];	char n_11[50];	char n_12[50];}GPGGA;typedef struct GPGSA_STC{	/*		GPS DOP and Active Satellites (GSA)	 $GPGSA,<1>,<2>,<3>,<3>,<3>,<3>,<3>,<3>,<3>,<3>,<3>,<3>,<3>,<3>,<4>,<5>,<6>*hh<CR><LF>     <1>   Mode, M = manual, A = automatic     <2>   Fix type, 1 = not available, 2 = 2D, 3 = 3D     <3>   PRN number, 01 to 32, of satellite used in solution, up to 12 transmitted (leading zeros will be           transmitted)     <4>   Position dilution of precision, 0.5 to 99.9     <5>   Horizontal dilution of precision, 0.5 to 99.9     <6>   Vertical dilution of precision, 0.5 to 99.9	 */	char n_1[20];	char n_2[20];	char n_3[50];	char n_4[50];	char n_5[50];	char n_6[50];	char n_7[50];	char n_8[50];	char n_9[50];	char n_10[50];	char n_11[50];	char n_12[50];	char n_13[50];	char n_14[50];	char n_15[50];	char n_16[50];	char n_17[50];	}GPGSA;typedef struct GPGSV_STC{	/*      GPS Satellites in View (GSV)	$GPGSV,<1>,<2>,<3>,<4>,<5>,<6>,<7>,...<4>,<5>,<6>,<7>*hh<CR><LF>     <1>   Total number of GSV sentences to be transmitted     <2>   Number of current GSV sentence     <3>   Total number of satellites in view, 00 to 12 (leading zeros will be transmitted)     <4>   Satellite PRN number, 01 to 32 (leading zeros will be transmitted)     <5>   Satellite elevation, 00 to 90 degrees (leading zeros will be transmitted)     <6>   Satellite azimuth, 000 to 359 degrees, true (leading zeros will be transmitted)     <7>   Signal to noise ratio (C/No) 00 to 99 dB, null when not tracking (leading zeros will be           transmitted)	 */	char n_1[50];	char n_2[50];	char n_3[50];	char n_4[50];	char n_5[50];	char n_6[50];	char n_7[50];	char n_8[50];	char n_9[50];	char n_10[50];	char n_11[50];	char n_12[50];	char n_13[50];	char n_14[50];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -