SysSensorCalibrationMessage.h
Go to the documentation of this file.
1 
39 #ifndef LibMultiSense_SysSensorCalibrationMessage
40 #define LibMultiSense_SysSensorCalibrationMessage
41 
43 
44 namespace crl {
45 namespace multisense {
46 namespace details {
47 namespace wire {
48 
50 public:
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  {
83  SER_ARRAY_1(adc_gain,2);
84  SER_ARRAY_1(bl_offset,2);
85 
86  if(version >=2) {
87  SER_ARRAY_1(vramp,2);
88  } else {
89  vramp[0] = 109;
90  vramp[1] = 109;
91  }
92  }
93 };
94 
95 }}}} // namespaces
96 
97 #endif
#define SER_ARRAY_1(a_, n_)
Definition: Protocol.h:276
static CRL_CONSTEXPR IdType ID_DATA_SYS_SENSOR_CAL
Definition: Protocol.h:215
SysSensorCalibration(utility::BufferStreamReader &r, VersionType v)
Definition: channel.cc:56
void serialize(Archive &message, const VersionType version)
#define CRL_CONSTEXPR
Definition: Portability.hh:51


multisense_lib
Author(s):
autogenerated on Sun Mar 14 2021 02:34:50