Flair
Framework Libre Air
FlairSimulator/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 <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 {
37 class SimuPressureSensor : public core::IODevice {
38 public:
49  SimuPressureSensor(const simulator::Model *parent, std::string name, uint32_t modelId,uint32_t deviceId);
50 
56 
57 protected:
62  core::SharedMem *shmem;
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
namespace of the flair Framework
Definition: Ahrs.h:19
Abstract class for input/ouput system.
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.