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 FrameworkManager;
22 class cvmatrix;
23 }
24 namespace gui {
25 class Tab;
26 class TabWidget;
27 class Layout;
28 }
29 }
30 
31 namespace flair {
32 namespace sensor {
37 class RadioReceiver : public core::IODevice {
38 public:
48  RadioReceiver(const core::FrameworkManager *parent, std::string name,
49  unsigned int nb_channels);
50 
56 
64  float ChannelValue(unsigned int id) const;
65 
71  bool IsConnected(void) const;
72 
78  gui::Layout *GetLayout(void) const;
79 
80 private:
88  void UpdateFrom(const core::io_data *data){};
89 
90  core::cvmatrix *output;
91  bool is_connected;
92  unsigned int nb_channels;
93  gui::Tab *main_tab;
94  gui::TabWidget *tab;
95  gui::Tab *setup_tab;
96 };
97 } // end namespace sensor
98 } // end namespace flair
99 #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
Class defining a matrix of kind CvMat.
Definition: cvmatrix.h:33
Abstract class for input/ouput system.
Abstract class to display a layout on the ground station.
Definition: Layout.h:33
RadioReceiver(const core::FrameworkManager *parent, std::string name, unsigned int nb_channels)
Constructor.
Main class of the Framework library.
Definition: FrameworkManager.h:45
Class displaying a QTabWidget on the ground station.
Definition: TabWidget.h:29
bool IsConnected(void) const
Is transmitter connected?
Class displaying a QTab on the ground station.
Definition: Tab.h:29
Base class for radio receiver.
Definition: RadioReceiver.h:37
gui::Layout * GetLayout(void) const
Setup Layout.
float ChannelValue(unsigned int id) const
get channel value