2 ******************************************************************************
3 * @addtogroup OpenPilotModules OpenPilot Modules
5 * @addtogroup GPSModule GPS Module
6 * @brief Process GPS information
10 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
11 * @brief Include file of the GPS module.
12 * As with all modules only the initialize function is exposed all other
13 * interactions with the module take place through the event queue and
15 * @see The GNU Public License (GPL) Version 3
17 *****************************************************************************/
19 * This program is free software; you can redistribute it and/or modify
20 * it under the terms of the GNU General Public License as published by
21 * the Free Software Foundation; either version 3 of the License, or
22 * (at your option) any later version.
24 * This program is distributed in the hope that it will be useful, but
25 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
26 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
29 * You should have received a copy of the GNU General Public License along
30 * with this program; if not, write to the Free Software Foundation, Inc.,
31 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
37 #include "gpsvelocitysensor.h"
38 #include "gpssatellites.h"
39 #include "gpspositionsensor.h"
41 #include "auxmagsettings.h"
43 #define NO_PARSER -3 // no parser available
44 #define PARSER_OVERRUN -2 // message buffer overrun before completing the message
45 #define PARSER_ERROR -1 // message unparsable by this parser
46 #define PARSER_INCOMPLETE 0 // parser needs more data to complete the message
47 #define PARSER_COMPLETE 1 // parser has received a complete message and finished processing
50 uint16_t gpsRxReceived
;
51 uint16_t gpsRxChkSumError
;
52 uint16_t gpsRxOverflow
;
53 uint16_t gpsRxParserError
;
56 int32_t GPSInitialize(void);
57 void gps_set_fc_baud_from_arg(uint8_t baud
);
58 uint32_t hwsettings_gpsspeed_enum_to_baud(uint8_t baud
);