|
QGIS API Documentation
master-6227475
|
00001 /* 00002 * Copyright Tim (xtimor@gmail.com) 00003 * 00004 * NMEA library is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU Lesser General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/> 00016 */ 00017 /* 00018 * 00019 * NMEA library 00020 * URL: http://nmea.sourceforge.net 00021 * Author: Tim (xtimor@gmail.com) 00022 * Licence: http://www.gnu.org/licenses/lgpl.html 00023 * $Id: info.h 10 2007-11-15 14:50:15Z xtimor $ 00024 * 00025 */ 00026 00029 #ifndef __NMEA_INFO_H__ 00030 #define __NMEA_INFO_H__ 00031 00032 #include "nmeatime.h" 00033 00034 #define NMEA_SIG_BAD (0) 00035 #define NMEA_SIG_LOW (1) 00036 #define NMEA_SIG_MID (2) 00037 #define NMEA_SIG_HIGH (3) 00038 00039 #define NMEA_FIX_BAD (1) 00040 #define NMEA_FIX_2D (2) 00041 #define NMEA_FIX_3D (3) 00042 00043 #define NMEA_MAXSAT (12) 00044 #define NMEA_SATINPACK (4) 00045 #define NMEA_NSATPACKS (NMEA_MAXSAT / NMEA_SATINPACK) 00046 00047 #define NMEA_DEF_LAT (5001.2621) 00048 #define NMEA_DEF_LON (3613.0595) 00049 00050 #ifdef __cplusplus 00051 extern "C" 00052 { 00053 #endif 00054 00058 typedef struct _nmeaPOS 00059 { 00060 double lat; 00061 double lon; 00063 } nmeaPOS; 00064 00070 typedef struct _nmeaSATELLITE 00071 { 00072 int id; 00073 int in_use; 00074 int elv; 00075 int azimuth; 00076 int sig; 00078 } nmeaSATELLITE; 00079 00085 typedef struct _nmeaSATINFO 00086 { 00087 int inuse; 00088 int inview; 00089 nmeaSATELLITE sat[NMEA_MAXSAT]; 00091 } nmeaSATINFO; 00092 00099 typedef struct _nmeaINFO 00100 { 00101 int smask; 00103 nmeaTIME utc; 00105 int sig; 00106 int fix; 00108 double PDOP; 00109 double HDOP; 00110 double VDOP; 00112 double lat; 00113 double lon; 00114 double elv; 00115 double speed; 00116 double direction; 00117 double declination; 00119 nmeaSATINFO satinfo; 00121 } nmeaINFO; 00122 00123 void nmea_zero_INFO( nmeaINFO *info ); 00124 00125 #ifdef __cplusplus 00126 } 00127 #endif 00128 00129 #endif /* __NMEA_INFO_H__ */