Public Member Functions | |
ADD_DIVER_MESSAGE (PositionInit, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0) | |
ADD_DIVER_MESSAGE (Position_18, 1, 7, 18, 0, 0, 0, 0, 0, 1, 0) | |
ADD_DIVER_MESSAGE (PositionMsg, 2, 7, 7, 0, 23, 0, 0, 0, 0, 0) | |
ADD_DIVER_MESSAGE (PositionImg, 3, 7, 7, 0, 0, 0, 0, 23, 0, 0) | |
ADD_DIVER_MESSAGE (Position_14Def, 4, 7, 14, 5, 0, 0, 0, 0, 4, 0) | |
ADD_DIVER_MESSAGE (PositionMsgDef, 5, 7, 7, 5, 18, 0, 0, 0, 0, 0) | |
ADD_DIVER_MESSAGE (PositionImgDef, 6, 7, 7, 5, 0, 0, 0, 18, 0, 0) | |
ADD_DIVER_MESSAGE (PositionKml, 7, 7, 7, 0, 0, 3, 10, 0, 0, 0) | |
ADD_DIVER_MESSAGE (PositionChk, 8, 7, 7, 0, 0, 0, 0, 0, 17, 6) | |
ADD_DIVER_MESSAGE (PositionMsgChk, 9, 7, 7, 0, 12, 0, 0, 0, 5, 6) | |
ADD_DIVER_MESSAGE (PositionImgChk, 10, 7, 7, 0, 0, 0, 0, 17, 0, 6) | |
ADD_DIVER_MESSAGE (PositionDefChk, 11, 7, 7, 5, 0, 0, 0, 0, 12, 6) | |
ADD_DIVER_MESSAGE (PositionMsgDefChk, 12, 7, 7, 5, 12, 0, 0, 0, 0, 6) | |
ADD_DIVER_MESSAGE (PositionImgDefChk, 13, 7, 7, 5, 0, 0, 0, 12, 0, 6) | |
ADD_DIVER_MESSAGE (PositonInitAck, 0, 0, 22, 0, 0, 0, 0, 0, 0, 0) | |
ADD_DIVER_MESSAGE (Msg, 1, 0, 0, 0, 0, 0, 0, 0, 44, 0) | |
DiverMsg () | |
template<size_t precission> | |
std::pair< int, int > | latlonToBits (double lat, double lon) |
template<class msg > | |
uint64_t | pack () |
template<class msg > | |
bool | unpack (uint64_t data) |
Static Public Member Functions | |
static uint8_t | testType (uint64_t data, size_t msgSize=48) |
Public Attributes | |
uint8_t | depth |
double | depthRes |
uint64_t | fullmsg |
int | lat |
double | latitude |
int | lon |
double | longitude |
uint64_t | msg |
double | z |
Definition at line 63 of file MsgEncoder.cpp.
DiverMsg::DiverMsg | ( | ) | [inline] |
Definition at line 85 of file MsgEncoder.cpp.
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionInit | , |
0 | , | ||
0 | , | ||
22 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | Position_18 | , |
1 | , | ||
7 | , | ||
18 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
1 | , | ||
0 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionMsg | , |
2 | , | ||
7 | , | ||
7 | , | ||
0 | , | ||
23 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionImg | , |
3 | , | ||
7 | , | ||
7 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
23 | , | ||
0 | , | ||
0 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | Position_14Def | , |
4 | , | ||
7 | , | ||
14 | , | ||
5 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
4 | , | ||
0 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionMsgDef | , |
5 | , | ||
7 | , | ||
7 | , | ||
5 | , | ||
18 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionImgDef | , |
6 | , | ||
7 | , | ||
7 | , | ||
5 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
18 | , | ||
0 | , | ||
0 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionKml | , |
7 | , | ||
7 | , | ||
7 | , | ||
0 | , | ||
0 | , | ||
3 | , | ||
10 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionChk | , |
8 | , | ||
7 | , | ||
7 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
17 | , | ||
6 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionMsgChk | , |
9 | , | ||
7 | , | ||
7 | , | ||
0 | , | ||
12 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
5 | , | ||
6 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionImgChk | , |
10 | , | ||
7 | , | ||
7 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
17 | , | ||
0 | , | ||
6 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionDefChk | , |
11 | , | ||
7 | , | ||
7 | , | ||
5 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
12 | , | ||
6 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionMsgDefChk | , |
12 | , | ||
7 | , | ||
7 | , | ||
5 | , | ||
12 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
6 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositionImgDefChk | , |
13 | , | ||
7 | , | ||
7 | , | ||
5 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
12 | , | ||
0 | , | ||
6 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | PositonInitAck | , |
0 | , | ||
0 | , | ||
22 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | |||
) |
DiverMsg::ADD_DIVER_MESSAGE | ( | Msg | , |
1 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
0 | , | ||
44 | , | ||
0 | |||
) |
std::pair< int, int > DiverMsg::latlonToBits< 7 > | ( | double | lat, |
double | lon | ||
) | [inline] |
Definition at line 131 of file MsgEncoder.cpp.
uint64_t DiverMsg::pack | ( | ) | [inline] |
Definition at line 93 of file MsgEncoder.cpp.
static uint8_t DiverMsg::testType | ( | uint64_t | data, |
size_t | msgSize = 48 |
||
) | [inline, static] |
Definition at line 108 of file MsgEncoder.cpp.
bool DiverMsg::unpack | ( | uint64_t | data | ) | [inline] |
Definition at line 114 of file MsgEncoder.cpp.
Definition at line 135 of file MsgEncoder.cpp.
double DiverMsg::depthRes |
Definition at line 131 of file MsgEncoder.cpp.
uint64_t DiverMsg::fullmsg |
Definition at line 134 of file MsgEncoder.cpp.
int DiverMsg::lat |
Definition at line 136 of file MsgEncoder.cpp.
double DiverMsg::latitude |
Definition at line 131 of file MsgEncoder.cpp.
int DiverMsg::lon |
Definition at line 136 of file MsgEncoder.cpp.
double DiverMsg::longitude |
Definition at line 131 of file MsgEncoder.cpp.
uint64_t DiverMsg::msg |
Definition at line 137 of file MsgEncoder.cpp.
double DiverMsg::z |
Definition at line 131 of file MsgEncoder.cpp.