Flair
Framework Libre Air
SimuUs.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 SIMUUS_H
14 #define SIMUUS_H
15 
16 #include <UsRangeFinder.h>
17 #include <Thread.h>
18 
19 namespace flair {
20 namespace core {
21 class SharedMem;
22 }
23 namespace gui {
24 class SpinBox;
25 }
26 }
27 
28 namespace flair {
29 namespace sensor {
34 class SimuUs : public core::Thread, public UsRangeFinder {
35 public:
47  SimuUs(std::string name,
48  uint32_t modelId,uint32_t deviceId, uint8_t priority);
49 
61  SimuUs(const core::IODevice *parent, std::string name, uint32_t modelId,uint32_t deviceId);
62 
67  ~SimuUs();
68 
69 protected:
75 
76 private:
84  void UpdateFrom(const core::io_data *data){};
85 
92  void Run(void);
93 
94  std::string ShMemName(uint32_t modelId,uint32_t deviceId);
95  gui::SpinBox *data_rate;
96 };
97 } // end namespace sensor
98 } // end namespace flair
99 #endif // SIMUUS_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
core::SharedMem * shmem
SharedMem to access datas.
Definition: SimuUs.h:74
Base class for UsRangeFinder.
Definition: UsRangeFinder.h:40
Class displaying a QSpinBox on the ground station.
Definition: SpinBox.h:28
~SimuUs()
Destructor.
Base class for UsRangeFinder.
Class for a simulation UsRangeFinder.
Definition: SimuUs.h:34
Abstract class for a thread.
Class defining a shared memory.
Definition: SharedMem.h:32
Abstract class for a thread.
Definition: Thread.h:38
SimuUs(std::string name, uint32_t modelId, uint32_t deviceId, uint8_t priority)
Constructor.