Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
gps_nmea_send.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Jean-Baptiste FORESTIER <jean-baptiste.forestier@enac.fr>
3 *
4 * This file is part of paparazzi
5 *
6 * paparazzi is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * paparazzi is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with paparazzi; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
19 */
27#ifndef GPS_NMEA_SEND_H
28#define GPS_NMEA_SEND_H
29
30#include "std.h"
31
33 double lat;
34 double lon;
37 float hmsl;
38 float vground;
39 float course;
40};
41
43 bool error_init; // Flag to indicate if there was an error during initialization
45};
46
47extern void gps_nmea_send_init(void);
48extern void gps_nmea_send_periodic(void);
49
50#endif
float vground
Speed over ground in m/s.
struct gps_nmea_send_msg_t msg
float hmsl
Orthometric height (MSL reference)
double lat
Latitude.
float course
GPS course over ground in rad*1e7, [0, 2*Pi]*1e7 (CW/north)
void gps_nmea_send_init(void)
Initialization function.
uint8_t num_sv
number of sat in fix
double lon
Longiitude.
uint16_t pdop
position dilution of precision scaled by 100
void gps_nmea_send_periodic(void)
Periodic function to send data.
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.