LibMultiSense
LibMultiSense Documentation
Loading...
Searching...
No Matches
SysSensorCalibrationMessage.hh
Go to the documentation of this file.
1
39#ifndef LibMultiSense_SysSensorCalibrationMessage
40#define LibMultiSense_SysSensorCalibrationMessage
41
43
44namespace crl {
45namespace multisense {
46namespace details {
47namespace wire {
48
50public:
53
54
55 uint8_t adc_gain[2];
56 int16_t bl_offset[2];
57
58 //version 2
59
60 uint8_t vramp[2];
61
62 //
63 // Constructors
64
67 {
68 adc_gain[0] = 0;
69 adc_gain[1] = 0;
70 bl_offset[0] = 0;
71 bl_offset[1] = 0;
72 vramp[0] = 0;
73 vramp[1] = 0;
74 };
75
76 //
77 // Serialization routine
78
79 template<class Archive>
80 void serialize(Archive& message,
81 const VersionType version)
82 {
85
86 if(version >=2) {
88 } else {
89 vramp[0] = 109;
90 vramp[1] = 109;
91 }
92 }
93};
94
95}}}} // namespaces
96
97#endif
Macros and symbols to help portability between different compiler versions.
#define CRL_CONSTEXPR
#define SER_ARRAY_1(a_, n_)
Definition Protocol.hh:347
SysSensorCalibration(utility::BufferStreamReader &r, VersionType v)
void serialize(Archive &message, const VersionType version)
static CRL_CONSTEXPR IdType ID_DATA_SYS_SENSOR_CAL
Definition Protocol.hh:227