memory_blocs_parsers/external_data/dvl_ground_speed.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace ixblue_stdbin_decoder
7 {
8 namespace Parser
9 {
11 {
12 public:
13  DvlGroundSpeed(int bit_pose) : MemoryBlockParser(bit_pose, 37) {}
14  void parse(boost::asio::const_buffer& buffer,
15  Data::BinaryNav& outBinaryNav) override
16  {
18  buffer >> res.validityTime_100us >> res.dvl_id >> res.xv1_groundspeed_ms >>
20  res.dvl_altitude_m >> res.xv1_stddev_ms >> res.xv2_stddev_ms >>
21  res.xv3_stddev_ms;
22  fillRes(res, outBinaryNav);
23  }
24  virtual void fillRes(const Data::DvlGroundSpeed& res,
25  Data::BinaryNav& outBinaryNav) = 0;
26 };
27 
29 {
30 public:
32 
33 protected:
34  void fillRes(const Data::DvlGroundSpeed& res, Data::BinaryNav& outBinaryNav)
35  {
36  outBinaryNav.dvlGroundSpeed1 = res;
37  }
38 };
39 
41 {
42 public:
44 
45 protected:
46  void fillRes(const Data::DvlGroundSpeed& res, Data::BinaryNav& outBinaryNav)
47  {
48  outBinaryNav.dvlGroundSpeed2 = res;
49  }
50 };
51 
52 } // namespace Parser
53 } // namespace ixblue_stdbin_decoder
boost::optional< DvlGroundSpeed > dvlGroundSpeed2
Definition: stdbin.h:134
void fillRes(const Data::DvlGroundSpeed &res, Data::BinaryNav &outBinaryNav)
virtual void fillRes(const Data::DvlGroundSpeed &res, Data::BinaryNav &outBinaryNav)=0
void parse(boost::asio::const_buffer &buffer, Data::BinaryNav &outBinaryNav) override
boost::optional< DvlGroundSpeed > dvlGroundSpeed1
Definition: stdbin.h:123
void fillRes(const Data::DvlGroundSpeed &res, Data::BinaryNav &outBinaryNav)


ixblue_stdbin_decoder
Author(s): Adrien BARRAL , Laure LEBROTON
autogenerated on Sat Jan 9 2021 03:13:21