Larus glider flight sensor system 3.9.2024
Software-In-The-Loop test and validation system
Loading...
Searching...
No Matches
NMEA_format.h
Go to the documentation of this file.
1
6#ifndef APPLICATION_NMEA_FORMAT_H_
7#define APPLICATION_NMEA_FORMAT_H_
8
9#include "data_structures.h"
10#include "embedded_math.h"
11
14{
15public:
16 enum{ BUFLEN = 1024-sizeof(uint32_t)};
17 char string[BUFLEN];
19};
20
27
31char * to_ascii_2_decimals( int32_t number, char *s);
32char * to_ascii_1_decimal( int32_t number, char *s);
33inline char * to_ascii_2_decimals( float32_t number, char *s)
34{
35 return to_ascii_2_decimals( (int32_t)( number + 0.5f), s);
36}
37inline char * to_ascii_1_decimal( float32_t number, char *s)
38{
39 return to_ascii_1_decimal( (int32_t)( number + 0.5f), s);
40}
41void format_PLARV ( float variometer, float avg_variometer, float pressure_altitude, float TAS, char * &p);
42void format_RMC (const coordinates_t &coordinates, char * &p);
43void format_PLARS ( float value, PLARS_TYPES type, char * &p) ;
44bool NMEA_checksum( const char *line);
45
46#endif /* APPLICATION_NMEA_FORMAT_H_ */
PLARS_TYPES
Definition NMEA_format.h:21
@ BUGS
Definition NMEA_format.h:24
@ BAL
Definition NMEA_format.h:23
@ MC
Definition NMEA_format.h:22
@ QNH
Definition NMEA_format.h:25
char * to_ascii_2_decimals(int32_t number, char *s)
void format_PLARS(float value, PLARS_TYPES type, char *&p)
format setting NMEA for MacCready, Ballast, Bugs, QNH
char * to_ascii_1_decimal(int32_t number, char *s)
bool NMEA_checksum(const char *line)
test a line for valid NMEA checksum
void format_PLARV(float variometer, float avg_variometer, float pressure_altitude, float TAS, char *&p)
TEK vario, average vario, pressure altitude and speed (TAS)
void format_NMEA_string_fast(const output_data_t &output_data, string_buffer_t &NMEA_buf, bool horizon_available)
combine all data to be output to the NMEA port
void format_NMEA_string_slow(const output_data_t &output_data, string_buffer_t &NMEA_buf)
this procedure formats all our NMEA sequences
void format_RMC(const coordinates_t &coordinates, char *&p)
NMEA-format time, position, groundspeed, track data.
float s[2][6]
contains a string including it's length
Definition NMEA_format.h:14
uint32_t length
Definition NMEA_format.h:18
mathematical vector of arbitrary type and size
Definition vector.h:40
defines platform-dependent algorithms and constants
float float32_t
Contains all important data from the GNSS.
Definition GNSS.h:104
combination of all input and output data in one structure