kvh_global_vars.cpp
Go to the documentation of this file.
1 /*********************************************************************
2  * Software License Agreement (Apache 2.0)
3  *
4  * Copyright (c) 2019, The MITRE Corporation.
5  * All rights reserved.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * https://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  * Sections of this project contains content developed by The MITRE Corporation.
20  * If this code is used in a deployment or embedded within another project,
21  * it is requested that you send an email to opensource@mitre.org in order to
22  * let us know where this software is being used.
23  *********************************************************************/
24 
32 #include <typeinfo>
33 
34 namespace kvh
35 {
36  // Keep a list of supported packets using KVH's packet id enum
37  std::set<packet_id_e> supportedPackets_ = {
50 };
51 
52 // Keep lookup table of packet sizes. Used for calculating required baud rates
53 std::map<packet_id_e, int> packetSize_ = {
66 };
67 
68 // String names of struct types. Used for assurance we have received the correct packet
69 std::map<packet_id_e, std::string> packetTypeStr_ = {
71  {packet_id_unix_time, typeid(unix_time_packet_t).name()},
73  {packet_id_satellites, typeid(satellites_packet_t).name()},
76  {packet_id_utm_position, typeid(utm_fix).name()},
81  {packet_id_raw_gnss, typeid(raw_gnss_packet_t).name()},
82 };
83 }
global variables used to store packet information.
std::map< packet_id_e, std::string > packetTypeStr_
Holds the string value for the different types of structs.
std::set< packet_id_e > supportedPackets_
Set of packets containing all packet_id&#39;s we support.
std::map< packet_id_e, int > packetSize_
Map relating packet id&#39;s to the associated struct size. Used for baudrate calculation.


kvh_geo_fog_3d_driver
Author(s): Trevor Bostic , Zach LaCelle
autogenerated on Fri Jan 24 2020 03:18:17