Flair
Framework Libre Air
RadioReceiver.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
13 #ifndef RADIORECEIVER_H
14 #define RADIORECEIVER_H
15 
16 #include <IODevice.h>
17 #include <stdint.h>
18 
19 namespace flair {
20 namespace core {
21 class Matrix;
22 }
23 namespace gui {
24 class Tab;
25 class TabWidget;
26 class Layout;
27 }
28 }
29 
30 namespace flair {
31 namespace sensor {
36 class RadioReceiver : public core::IODevice {
37 public:
47  RadioReceiver(std::string name,
48  unsigned int nb_channels);
49 
55 
63  float ChannelValue(unsigned int id) const;
64 
70  bool IsConnected(void) const;
71 
77  gui::Layout *GetLayout(void) const;
78 
79 private:
87  void UpdateFrom(const core::io_data *data){};
88 
89  core::Matrix *output;
90  bool is_connected;
91  unsigned int nb_channels;
92  gui::Tab *main_tab;
93  gui::TabWidget *tab;
94  gui::Tab *setup_tab;
95 };
96 } // end namespace sensor
97 } // end namespace flair
98 #endif // RADIORECEIVER_H
Abstract class for data types.
Definition: io_data.h:94
Abstract class for input/ouput system.
Definition: IODevice.h:45
namespace of the flair Framework
Definition: Ahrs.h:19
Abstract class for input/ouput system.
RadioReceiver(std::string name, unsigned int nb_channels)
Constructor.
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
Class displaying a QTabWidget on the ground station.
Definition: TabWidget.h:29
bool IsConnected(void) const
Is transmitter connected?
Class defining a matrix.
Definition: Matrix.h:31
Class displaying a QTab on the ground station.
Definition: Tab.h:29
Base class for radio receiver.
Definition: RadioReceiver.h:36
gui::Layout * GetLayout(void) const
Setup Layout.
float ChannelValue(unsigned int id) const
get channel value