43#define PRIMARY_GPS GPS_UBX
50#define GPS_UBX_NB_CHANNELS 40
51#ifndef GPS_UBX_MAX_PAYLOAD
52#define GPS_UBX_MAX_PAYLOAD 1024
56 struct link_device *
dev;
84#include "pprzlink/pprzlink_device.h"
static struct uart_periph * dev
Device independent GPS code (interface).
data structure for GPS information
struct GpsUbx gps_ubx[GPS_UBX_NB]
void gps_ubx_periodic_check(void)
void ubx_trailer(struct link_device *dev)
void gps_ubx_parse_HITL_UBX(uint8_t *buf)
void ubx_header(struct link_device *dev, uint8_t nav_id, uint8_t msg_id, uint16_t len)
void ubx_send_cfg_rst(struct link_device *dev, uint16_t bbr, uint8_t reset_mode)
uint8_t gnss_in_use
Satellite systems used in the solution (UBX-NAV-SAT): 1 GPS, 2 GLONASS, 4 BeiDou, 8 Galileo.
uint8_t msg_buf[GPS_UBX_MAX_PAYLOAD]
void ubx_send_bytes(struct link_device *dev, uint8_t len, uint8_t *bytes)
#define GPS_UBX_MAX_PAYLOAD
e.g. UBX-NAV-SAT is 8 + 12 * numSvs bytes
pprz link device for Ublox over I2C
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.