RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
topics.hpp
Go to the documentation of this file.
1
11
12#ifndef EXAMPLE_TOPIC_H
13#define EXAMPLE_TOPIC_H
14#include <array>
15#include <chrono>
16#include <cstdint>
17#include <taiclock/taiClock.hpp>
18
20// cppcheck-suppress-begin unusedStructMember
21
22constexpr unsigned NUM_PIXELS = 800u * 800u;
23constexpr unsigned N_SUBAPS = 4616u;
24constexpr unsigned N_COMMANDS = 6316u;
25
26template <unsigned int NSUBAPS>
28 std::array<float, 2 * NSUBAPS> slopes;
29 std::array<float, NSUBAPS> intensities;
30};
31
33 uint32_t sample_id; // sample_id is a mandatory field
34 taiclock::TaiClock::time_point
35 wfs_timestamp; // time stamp is a mandatory field, in this case we have two of them
36 taiclock::TaiClock::time_point cmd_timestamp; // ... in this case we have two timestamps
38 std::array<float, N_COMMANDS> commands;
39};
40
42 uint32_t sample_id; // sample_id is a mandatory field
43 taiclock::TaiClock::time_point
44 wfs_timestamp; // time stamp is a mandatory field, in this case we have two of them
45 taiclock::TaiClock::time_point cmd_timestamp; // ... in this case we have two timestamps
46 std::array<WfsLoopBaseTopic<N_SUBAPS>, 6> wfs;
47 std::array<float, N_COMMANDS> commands;
48};
49
50template <unsigned int NPIX>
52 std::array<float, NPIX> pixels;
53};
54
56 uint32_t sample_id; // sample_id is a mandatory field
57 taiclock::TaiClock::time_point timestamp; // time stamp is a mandatory field
58 std::array<PixelBaseTopic<NUM_PIXELS>, 6> lgs_wfs_pixels;
59};
60
62 uint32_t sample_id; // sample_id is a mandatory field
63 taiclock::TaiClock::time_point
64 data1_timestamp; // time stamp is a mandatory field, in this case we have three of them
65 taiclock::TaiClock::time_point data2_timestamp;
66 taiclock::TaiClock::time_point data3_timestamp;
67 std::array<uint32_t, 192 * 192> data_1;
68 std::array<uint32_t, 96 * 96> data_2;
69 std::array<float, 92 * 92> data_3;
70};
71
72// cppcheck-suppress-end unusedStructMember
73} // namespace rtctk::exampleTopic
74
75#endif // EXAMPLE_TOPIC_H
Definition topics.hpp:19
constexpr unsigned NUM_PIXELS
Definition topics.hpp:22
constexpr unsigned N_COMMANDS
Definition topics.hpp:24
constexpr unsigned N_SUBAPS
Definition topics.hpp:23
Definition topics.hpp:55
std::array< PixelBaseTopic< NUM_PIXELS >, 6 > lgs_wfs_pixels
Definition topics.hpp:58
taiclock::TaiClock::time_point timestamp
Definition topics.hpp:57
uint32_t sample_id
Definition topics.hpp:56
Definition topics.hpp:41
taiclock::TaiClock::time_point cmd_timestamp
Definition topics.hpp:45
uint32_t sample_id
Definition topics.hpp:42
std::array< float, N_COMMANDS > commands
Definition topics.hpp:47
std::array< WfsLoopBaseTopic< N_SUBAPS >, 6 > wfs
Definition topics.hpp:46
taiclock::TaiClock::time_point wfs_timestamp
Definition topics.hpp:44
Definition topics.hpp:51
std::array< float, NPIX > pixels
Definition topics.hpp:52
Definition topics.hpp:61
std::array< uint32_t, 96 *96 > data_2
Definition topics.hpp:68
taiclock::TaiClock::time_point data3_timestamp
Definition topics.hpp:66
taiclock::TaiClock::time_point data1_timestamp
Definition topics.hpp:64
std::array< float, 92 *92 > data_3
Definition topics.hpp:69
std::array< uint32_t, 192 *192 > data_1
Definition topics.hpp:67
uint32_t sample_id
Definition topics.hpp:62
taiclock::TaiClock::time_point data2_timestamp
Definition topics.hpp:65
Definition topics.hpp:32
taiclock::TaiClock::time_point wfs_timestamp
Definition topics.hpp:35
std::array< float, N_COMMANDS > commands
Definition topics.hpp:38
WfsLoopBaseTopic< N_SUBAPS > wfs
Definition topics.hpp:37
uint32_t sample_id
Definition topics.hpp:33
taiclock::TaiClock::time_point cmd_timestamp
Definition topics.hpp:36
std::array< float, 2 *NSUBAPS > slopes
Definition topics.hpp:28
std::array< float, NSUBAPS > intensities
Definition topics.hpp:29