-
Notifications
You must be signed in to change notification settings - Fork 0
/
nmea0183Types.hpp
45 lines (40 loc) · 1.42 KB
/
nmea0183Types.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef nmea0183_TYPES_HPP
#define nmea0183_TYPES_HPP
#include <base/Time.hpp>
namespace nmea0183 {
/** Statistics on sentences received at the NMEA level */
struct NMEAStats {
base::Time time;
/** Count of messages that were rejected by marnav */
uint32_t invalid_sentences = 0;
/** Count of messages that were parsed by marnav */
uint32_t received_sentences = 0;
/**
* Count of messages that were ignored by the specific task
*
* These are the messages received but not interpreted and
* are included in \c received_messages as well
*/
uint32_t ignored_sentences = 0;
};
/** Statistics on AIS messages */
struct AISStats {
base::Time time;
/** Count of sentences that were discarded because their IDs were
* not sequential (probable lost message)
*/
uint32_t discarded_sentences = 0;
/** Count of messages that were rejected during parsing by marnav */
uint32_t invalid_messages = 0;
/** Count of messages that were parsed by marnav */
uint32_t received_messages = 0;
/**
* Count of messages that were ignored by the specific task
*
* These are the messages received but not interpreted and
* are included in \c received_messages as well
*/
uint32_t ignored_messages = 0;
};
}
#endif