RTC Toolkit  1.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 
17 constexpr unsigned NUM_PIXELS = 800u * 800u;
18 constexpr unsigned N_SUBAPS = 4616u;
19 constexpr unsigned N_COMMANDS = 6316u;
20 
21 template <unsigned int NSUBAPS>
23  std::array<float, 2 * NSUBAPS> slopes;
24  std::array<float, NSUBAPS> intensities;
25 };
26 
27 struct ScaoLoopTopic {
28  uint64_t sample_id;
30  std::array<float, N_COMMANDS> commands;
31 };
32 
33 struct McaoLoopTopic {
34  uint64_t sample_id;
35  std::array<WfsLoopBaseTopic<N_SUBAPS>, 6> wfs;
36  std::array<float, N_COMMANDS> commands;
37 };
38 
39 template <unsigned int NPIX>
41  std::array<float, NPIX> pixels;
42 };
43 
44 struct LgsPixelTopic {
45  uint64_t sample_id;
46  std::array<PixelBaseTopic<NUM_PIXELS>, 6> lgs_wfs_pixels;
47 };
48 
49 } // namespace rtctk::exampleTopic
50 
51 #endif // EXAMPLE_TOPIC_H
rtctk::exampleTopic::ScaoLoopTopic::wfs
WfsLoopBaseTopic< N_SUBAPS > wfs
Definition: topics.hpp:29
rtctk::exampleTopic::LgsPixelTopic::lgs_wfs_pixels
std::array< PixelBaseTopic< NUM_PIXELS >, 6 > lgs_wfs_pixels
Definition: topics.hpp:46
rtctk::exampleTopic::McaoLoopTopic::wfs
std::array< WfsLoopBaseTopic< N_SUBAPS >, 6 > wfs
Definition: topics.hpp:35
rtctk::exampleTopic::McaoLoopTopic::sample_id
uint64_t sample_id
Definition: topics.hpp:34
rtctk::exampleTopic::PixelBaseTopic
Definition: topics.hpp:40
rtctk::exampleTopic::PixelBaseTopic::pixels
std::array< float, NPIX > pixels
Definition: topics.hpp:41
rtctk::exampleTopic::ScaoLoopTopic::commands
std::array< float, N_COMMANDS > commands
Definition: topics.hpp:30
rtctk::exampleTopic::McaoLoopTopic::commands
std::array< float, N_COMMANDS > commands
Definition: topics.hpp:36
rtctk::exampleTopic::WfsLoopBaseTopic::slopes
std::array< float, 2 *NSUBAPS > slopes
Definition: topics.hpp:23
rtctk::exampleTopic::LgsPixelTopic
Definition: topics.hpp:44
rtctk::exampleTopic::ScaoLoopTopic::sample_id
uint64_t sample_id
Definition: topics.hpp:28
rtctk::exampleTopic::N_SUBAPS
constexpr unsigned N_SUBAPS
Definition: topics.hpp:18
rtctk::exampleTopic::ScaoLoopTopic
Definition: topics.hpp:27
rtctk::exampleTopic::WfsLoopBaseTopic
Definition: topics.hpp:22
rtctk::exampleTopic::McaoLoopTopic
Definition: topics.hpp:33
rtctk::exampleTopic::NUM_PIXELS
constexpr unsigned NUM_PIXELS
Definition: topics.hpp:17
rtctk::exampleTopic::N_COMMANDS
constexpr unsigned N_COMMANDS
Definition: topics.hpp:19
rtctk::exampleTopic::WfsLoopBaseTopic::intensities
std::array< float, NSUBAPS > intensities
Definition: topics.hpp:24
rtctk::exampleTopic
Definition: topics.hpp:16
rtctk::exampleTopic::LgsPixelTopic::sample_id
uint64_t sample_id
Definition: topics.hpp:45