-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaisFunction.h
More file actions
34 lines (22 loc) · 927 Bytes
/
aisFunction.h
File metadata and controls
34 lines (22 loc) · 927 Bytes
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
/************************************************************************/
/* */
/* P R O J E K T C A S T O R */
/* */
/* ais.h die Windsensor-Klasse */
/* */
/* Last Change 26.Februar 2009; Patrick Schwizer */
/* */
/************************************************************************/
#ifndef AISFUNCTION_H
#define AISFUNCTION_H
#include <DDXStore.h>
#include <DDXVariable.h>
void decode(RtxNMEA * msg, std::vector<unsigned char> & numeric);
unsigned long getBit(const std::vector<unsigned char> & numeric);
unsigned long getBitSequence(const std::vector<unsigned char> & numeric,
unsigned int start, unsigned int length);
std::string getBitString(const std::vector<unsigned char> & numeric,
unsigned int start, unsigned int length);
int rtx_nmea_read_ais( int port, RtxNMEA *mesg );
static int rtx_nmea_parse_ais(RtxNMEA *msg);
#endif //AISFUNCTION_H