Flair
Framework Libre Air
FlairSensorActuator/src/SimuPressureSensor.h
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 SIMUPRESSURESENSOR_H
14 #define SIMUPRESSURESENSOR_H
15 
16 #include <PressureSensor.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 {
35 public:
47  SimuPressureSensor(std::string name,
48  uint32_t modelId,uint32_t deviceId, uint8_t priority);
49 
55 
56 protected:
62 
63 private:
71  void UpdateFrom(const core::io_data *data){};
72 
79  void Run(void);
80 
81  std::string ShMemName(uint32_t modelId,uint32_t deviceId);
82  gui::SpinBox *data_rate;
83 };
84 } // end namespace sensor
85 } // end namespace flair
86 #endif // SIMUPRESSURESENSOR_H
Abstract class for data types.
Definition: io_data.h:94
namespace of the flair Framework
Definition: Ahrs.h:19
Base class for PressureSensor.
Definition: PressureSensor.h:40
Class displaying a QSpinBox on the ground station.
Definition: SpinBox.h:28
Class for a simulation PressureSensor.
Definition: FlairSensorActuator/src/SimuPressureSensor.h:34
core::SharedMem * shmem
SharedMem to access datas.
Definition: FlairSensorActuator/src/SimuPressureSensor.h:61
SimuPressureSensor(std::string name, uint32_t modelId, uint32_t deviceId, uint8_t priority)
Constructor.
Abstract class for a thread.
Class defining a shared memory.
Definition: SharedMem.h:32
Abstract class for a thread.
Definition: Thread.h:38
Base class for PressureSensor.