|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
35 #define GPS_NMEA_NB_CHANNELS 12
37 #define NMEA_MAXLEN 255
40 #define PRIMARY_GPS GPS_NMEA
60 #define gps_nmea_periodic_check() gps_periodic_check(&gps_nmea.state)
68 #include "pprzlink/pprzlink_device.h"
VIC slots used for the LPC2148 define name e g gps UART1_VIC_SLOT e g modem SPI1_VIC_SLOT SPI1 in mcu_periph spi_arch c or spi_slave_hs_arch c(and some others not using the SPI peripheral yet..) I2C0_VIC_SLOT 8 mcu_periph/i2c_arch.c I2C1_VIC_SLOT 9 mcu_periph/i2c_arch.c USB_VIC_SLOT 10 usb
void nmea_parse_prop_init(void)
uint8_t gps_nb_ovrn
number if incomplete nmea-messages
uint8_t status
line parser status
bool msg_available
flag set to TRUE if a new msg/sentence is available to be parsed
static void nmea_read_until(int *i)
Read until a certain character, placed here for proprietary includes.
data structure for GPS information
uint8_t buff[25]
Buffer used for general comunication over SPI (in buffer)
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
Device independent GPS code (interface)
bool is_configured
flag set to TRUE if configuration is finished
char msg_buf[NMEA_MAXLEN]
buffer for storing one nmea-line
bool have_gsv
flag set to TRUE if GPGSV message received
bool nmea_parse_msg(void)
nmea_parse_char() has a complete line.
void nmea_parse_char(uint8_t c)
This is the actual parser.
void gps_nmea_event(void)
uint8_t nmea_calc_crc(const char *buff, int buff_sz)
Calculate control sum of binary buffer.
bool nmea_parse_prop_msg(void)
void nmea_configure(void)
The function to be called when a characted from the device is available.