Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
gps_ubx_ucenter.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2008-2011 The Paparazzi Team
3 * 2026 Freek van Tienen <freek.v.tienen@gmail.com>
4 *
5 * This file is part of paparazzi.
6 *
7 * paparazzi is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
11 *
12 * paparazzi is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with paparazzi; see the file COPYING. If not, see
19 * <http://www.gnu.org/licenses/>.
20 */
21
27
28#ifndef GPS_UBX_UCENTER_H
29#define GPS_UBX_UCENTER_H
30
31#include "std.h"
32#include "pprzlink/pprzlink_device.h"
33
35#define GPS_UBX_UCENTER_CONFIG_STEPS 19
36
41
42 uint32_t baud_init; // Initial baudrate of the ublox module
43 uint32_t baud_run; // Current baudrate of the ublox module
44 uint32_t baud_target; // Final expected baudrate of the ublox module
45
48
51
54
57
61 bool valset;
62
64
65 // Gps device
66 struct link_device *dev;
67};
68
70
71extern void gps_ubx_ucenter_init(void);
72extern void gps_ubx_ucenter_periodic(void);
73extern void gps_ubx_ucenter_event(void);
74extern int gps_ubx_ucenter_get_status(void);
75
76#endif
77
78
struct gps_ubx_ucenter_struct gps_ubx_ucenter
#define GPS_UBX_UCENTER_CONFIG_STEPS
U-Center Variables.
void gps_ubx_ucenter_periodic(void)
bool cfg_prt_reply
Port configuration (legacy CFG-PRT) received.
uint8_t sbas_in_use
SBAS usage flags as configured (GPS_SBAS_*).
void gps_ubx_ucenter_event(void)
struct link_device * dev
char replies[GPS_UBX_UCENTER_CONFIG_STEPS]
uint8_t protver
Protocol version major (MON-VER extension), 0 when not reported.
bool version_reply
Version (MON-VER) received.
void gps_ubx_ucenter_init(void)
bool valset
Configured with UBX-CFG-VALSET: the receiver doesn't have the legacy UBX-CFG messages.
int gps_ubx_ucenter_get_status(void)
uint8_t port_id
Port identifier number.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.