RTC Toolkit  2.0.0
topics.hpp
Go to the documentation of this file.
1 
12 #ifndef EXAMPLE_TOPIC_H
13 #define EXAMPLE_TOPIC_H
14 #include <array>
15 #include <cstdint>
16 
18 constexpr unsigned NUM_PIXELS = 800u * 800u;
19 constexpr unsigned N_SUBAPS = 4616u;
20 constexpr unsigned N_COMMANDS = 6316u;
21 
22 template <unsigned int NSUBAPS>
24  std::array<float, 2 * NSUBAPS> slopes;
25  std::array<float, NSUBAPS> intensities;
26 };
27 
28 struct ScaoLoopTopic {
29  uint64_t sample_id;
31  std::array<float, N_COMMANDS> commands;
32 };
33 
34 struct McaoLoopTopic {
35  uint64_t sample_id;
36  std::array<WfsLoopBaseTopic<N_SUBAPS>, 6> wfs;
37  std::array<float, N_COMMANDS> commands;
38 };
39 
40 template <unsigned int NPIX>
42  std::array<float, NPIX> pixels;
43 };
44 
45 struct LgsPixelTopic {
46  uint64_t sample_id;
47  std::array<PixelBaseTopic<NUM_PIXELS>, 6> lgs_wfs_pixels;
48 };
49 
50 } // namespace rtctk::exampleTopic
51 
52 #endif // EXAMPLE_TOPIC_H
rtctk::exampleTopic::ScaoLoopTopic::wfs
WfsLoopBaseTopic< N_SUBAPS > wfs
Definition: topics.hpp:30
rtctk::exampleTopic::LgsPixelTopic::lgs_wfs_pixels
std::array< PixelBaseTopic< NUM_PIXELS >, 6 > lgs_wfs_pixels
Definition: topics.hpp:47
rtctk::exampleTopic::McaoLoopTopic::wfs
std::array< WfsLoopBaseTopic< N_SUBAPS >, 6 > wfs
Definition: topics.hpp:36
rtctk::exampleTopic::McaoLoopTopic::sample_id
uint64_t sample_id
Definition: topics.hpp:35
rtctk::exampleTopic::PixelBaseTopic
Definition: topics.hpp:41
rtctk::exampleTopic::PixelBaseTopic::pixels
std::array< float, NPIX > pixels
Definition: topics.hpp:42
rtctk::exampleTopic::ScaoLoopTopic::commands
std::array< float, N_COMMANDS > commands
Definition: topics.hpp:31
rtctk::exampleTopic::McaoLoopTopic::commands
std::array< float, N_COMMANDS > commands
Definition: topics.hpp:37
rtctk::exampleTopic::WfsLoopBaseTopic::slopes
std::array< float, 2 *NSUBAPS > slopes
Definition: topics.hpp:24
rtctk::exampleTopic::LgsPixelTopic
Definition: topics.hpp:45
rtctk::exampleTopic::ScaoLoopTopic::sample_id
uint64_t sample_id
Definition: topics.hpp:29
rtctk::exampleTopic::N_SUBAPS
constexpr unsigned N_SUBAPS
Definition: topics.hpp:19
rtctk::exampleTopic::ScaoLoopTopic
Definition: topics.hpp:28
rtctk::exampleTopic::WfsLoopBaseTopic
Definition: topics.hpp:23
rtctk::exampleTopic::McaoLoopTopic
Definition: topics.hpp:34
rtctk::exampleTopic::NUM_PIXELS
constexpr unsigned NUM_PIXELS
Definition: topics.hpp:18
rtctk::exampleTopic::N_COMMANDS
constexpr unsigned N_COMMANDS
Definition: topics.hpp:20
rtctk::exampleTopic::WfsLoopBaseTopic::intensities
std::array< float, NSUBAPS > intensities
Definition: topics.hpp:25
rtctk::exampleTopic
Definition: topics.hpp:17
rtctk::exampleTopic::LgsPixelTopic::sample_id
uint64_t sample_id
Definition: topics.hpp:46