LP-354 Add Ublox AssistNowAutonomous setting, file heading typos
[librepilot.git] / flight / modules / GPS / inc / NMEA.h
blob720e2129033550c34695e5d4a9d6ebd33bc80d3c
1 /**
2 ******************************************************************************
3 * @addtogroup OpenPilotModules OpenPilot Modules
4 * @{
5 * @addtogroup GPSModule GPS Module
6 * @brief Process GPS information (NMEA format)
7 * @{
9 * @file NMEA.h
10 * @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
11 * @brief GPS module, handles GPS and NMEA stream
12 * @see The GNU Public License (GPL) Version 3
14 *****************************************************************************/
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 3 of the License, or
19 * (at your option) any later version.
21 * This program is distributed in the hope that it will be useful, but
22 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
23 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24 * for more details.
26 * You should have received a copy of the GNU General Public License along
27 * with this program; if not, write to the Free Software Foundation, Inc.,
28 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 #ifndef NMEA_H
32 #define NMEA_H
34 #include <stdbool.h>
35 #include <stdint.h>
36 #include "GPS.h"
38 #define NMEA_MAX_PACKET_LENGTH 96 // 82 max NMEA msg size plus 12 margin (because some vendors add custom crap) plus CR plus Linefeed
40 extern bool NMEA_update_position(char *nmea_sentence, GPSPositionSensorData *GpsData);
41 extern bool NMEA_checksum(char *nmea_sentence);
42 extern int parse_nmea_stream(uint8_t *, uint8_t, char *, GPSPositionSensorData *, struct GPS_RX_STATS *);
44 #endif /* NMEA_H */