Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef USBLMESSAGES_HPP_
00039 #define USBLMESSAGES_HPP_
00040 #include <labust/tritech/mmcMessages.hpp>
00041 #include <labust/preprocessor/mem_serialized_struct.hpp>
00042 #include <boost/array.hpp>
00043 #include <cstdint>
00044
00045 namespace labust
00046 {
00047 namespace tritech
00048 {
00049 typedef boost::array<float,5> vec5f;
00050 typedef boost::array<float,4> vec4f;
00051 typedef boost::array<float,3> vec3f;
00052 typedef boost::array<double,3> vec3d;
00053 typedef boost::array<int16_t,3> vec3int16;
00054 }
00055 }
00056 BOOST_CLASS_IMPLEMENTATION(labust::tritech::vec3f , boost::serialization::primitive_type)
00057 BOOST_CLASS_IMPLEMENTATION(labust::tritech::vec3d , boost::serialization::primitive_type)
00058 BOOST_CLASS_IMPLEMENTATION(labust::tritech::vec4f , boost::serialization::primitive_type)
00059 BOOST_CLASS_IMPLEMENTATION(labust::tritech::vec5f , boost::serialization::primitive_type)
00060 BOOST_CLASS_IMPLEMENTATION(labust::tritech::vec3int16 , boost::serialization::primitive_type)
00061
00063 PP_LABUST_DEFINE_BOOST_SERIALIZED_STRUCT_CLEAN((labust)(tritech),USBLData,
00064 (size_t, time_ms)
00065 (uint8_t,reply_validity)
00066 (vec3f, doa)
00067 (float, RMS)
00068 (float, usblAngleQuality)
00069 (float, usblRangeQuality)
00070 (vec4f, reliability)
00071 (vec3d, attitude)
00072 (bool, isTransponder)
00073 (uint16_t, unitID)
00074 (vec3d, relativePos)
00075 (vec5f, sigma)
00076 (float, fixVOS)
00077 (double, range)
00078 (vec3d, attitudeCorrectedPos)
00079 (vec3d, worldPos)
00080 (double, time))
00081
00082 PP_LABUST_DEFINE_BOOST_SERIALIZED_STRUCT_CLEAN((labust)(tritech),AttSenData,
00083 (uint8_t, cmd)
00084 (uint32_t, time)
00085 (vec3int16, acc)
00086 (vec3int16, mag)
00087 (vec3int16, gyro)
00088 (int16_t, pressure)
00089 (int16_t, externalTemp)
00090 (int16_t, internalTemp))
00091
00092 PP_LABUST_DEFINE_BOOST_SERIALIZED_STRUCT_CLEAN((labust)(tritech),USBLDataV2,
00093 (labust::tritech::USBLData, nav)
00094 (labust::tritech::MMCMsg, modem))
00095
00096
00097 #endif