Flair
Framework Libre Air
SimuPressureSensor.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 SIMUPRESSURESENSOR_H
14 #define SIMUPRESSURESENSOR_H
15 
16 #include <IODevice.h>
17 
18 namespace flair {
19 namespace core {
20 class SharedMem;
21 }
22 namespace gui {
23 class SpinBox;
24 class DoubleSpinBox;
25 }
26 namespace simulator {
27 class Model;
28 }
29 }
30 
31 namespace flair {
32 namespace sensor {
38 public:
49  SimuPressureSensor(const simulator::Model *parent, std::string name, uint32_t modelId,uint32_t deviceId);
50 
56 
57 protected:
63 
64 private:
72  void UpdateFrom(const core::io_data *data);
73 
74  std::string ShMemName(uint32_t modelId,uint32_t deviceId);
75  gui::SpinBox *data_rate;
76  gui::DoubleSpinBox *seaPressure;
77 };
78 } // end namespace sensor
79 } // end namespace flair
80 #endif // SIMUPRESSURESENSOR_H
Abstract class for data types.
Definition: io_data.h:94
core::SharedMem * shmem
SharedMem to access datas.
Definition: SimuPressureSensor.h:62
Abstract class for input/ouput system.
Definition: IODevice.h:45
namespace of the flair Framework
Definition: Ahrs.h:19
Class displaying a QSpinBox on the ground station.
Definition: SpinBox.h:28
Class for a simulation PressureSensor.
Definition: SimuPressureSensor.h:37
Abstract class for input/ouput system.
Definition: Model.h:55
Class defining a shared memory.
Definition: SharedMem.h:32
Class displaying a QDoubleSpinBox on the ground station.
Definition: DoubleSpinBox.h:28
SimuPressureSensor(const simulator::Model *parent, std::string name, uint32_t modelId, uint32_t deviceId)
Constructor.