Line |
Branch |
Exec |
Source |
1 |
|
|
// This file is part of INSTINCT, the INS Toolkit for Integrated |
2 |
|
|
// Navigation Concepts and Training by the Institute of Navigation of |
3 |
|
|
// the University of Stuttgart, Germany. |
4 |
|
|
// |
5 |
|
|
// This Source Code Form is subject to the terms of the Mozilla Public |
6 |
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this |
7 |
|
|
// file, You can obtain one at https://mozilla.org/MPL/2.0/. |
8 |
|
|
|
9 |
|
|
#include "EmlidTypes.hpp" |
10 |
|
|
|
11 |
|
✗ |
NAV::vendor::emlid::ErbMessageID NAV::vendor::emlid::getMsgIdFromString(const std::string& idName) |
12 |
|
|
{ |
13 |
|
✗ |
if (idName == "VER") |
14 |
|
|
{ |
15 |
|
✗ |
return ErbMessageID::ERB_MessageId_VER; |
16 |
|
|
} |
17 |
|
✗ |
if (idName == "POS") |
18 |
|
|
{ |
19 |
|
✗ |
return ErbMessageID::ERB_MessageId_POS; |
20 |
|
|
} |
21 |
|
✗ |
if (idName == "STAT") |
22 |
|
|
{ |
23 |
|
✗ |
return ErbMessageID::ERB_MessageId_STAT; |
24 |
|
|
} |
25 |
|
✗ |
if (idName == "DPOS") |
26 |
|
|
{ |
27 |
|
✗ |
return ErbMessageID::ERB_MessageId_DPOS; |
28 |
|
|
} |
29 |
|
✗ |
if (idName == "VEL") |
30 |
|
|
{ |
31 |
|
✗ |
return ErbMessageID::ERB_MessageId_VEL; |
32 |
|
|
} |
33 |
|
✗ |
if (idName == "SVI") |
34 |
|
|
{ |
35 |
|
✗ |
return ErbMessageID::ERB_MessageId_SVI; |
36 |
|
|
} |
37 |
|
✗ |
if (idName == "RTK") |
38 |
|
|
{ |
39 |
|
✗ |
return ErbMessageID::ERB_MessageId_RTK; |
40 |
|
|
} |
41 |
|
|
|
42 |
|
✗ |
return ErbMessageID::ERB_MessageId_NONE; |
43 |
|
|
} |
44 |
|
|
|