CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_Common/NMEA.h
Views: 1798
1
/*
2
This program is free software: you can redistribute it and/or modify
3
it under the terms of the GNU General Public License as published by
4
the Free Software Foundation, either version 3 of the License, or
5
(at your option) any later version.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
11
12
You should have received a copy of the GNU General Public License
13
along with this program. If not, see <http://www.gnu.org/licenses/>.
14
*/
15
16
#include <AP_HAL/AP_HAL.h>
17
18
/*
19
formatted print of NMEA message to an allocated string, with
20
checksum appended
21
*/
22
char *nmea_vaprintf(const char *fmt, va_list ap);
23
24
/*
25
formatted print of NMEA message to a uart, with checksum appended
26
*/
27
bool nmea_printf(AP_HAL::UARTDriver *uart, const char *fmt, ...) FMT_PRINTF(2,3);
28
29
/*
30
formatted print of NMEA message to a buffer, with checksum appended.
31
Returns the length of the string filled into buf. If the NMEA string does not fit in the buffer, returns 0
32
*/
33
uint16_t nmea_printf_buffer(char* buf, const uint16_t buf_max_len, const char *fmt, ...);
34
35
36