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