Flair
Framework Libre Air
SimuLaser.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 SIMULASER_H
14 #define SIMULASER_H
15 
16 #include <LaserRangeFinder.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 SimuLaser : public core::Thread, public LaserRangeFinder {
35 public:
46  SimuLaser(const core::FrameworkManager *parent, std::string name,
47  uint32_t dev_id, uint8_t priority);
48 
59  SimuLaser(const core::IODevice *parent, std::string name, uint32_t dev_id);
60 
65  ~SimuLaser();
66 
67 protected:
73 
74 private:
82  void UpdateFrom(const core::io_data *data){};
83 
90  void Run(void);
91 
92  gui::SpinBox *data_rate;
93 };
94 } // end namespace sensor
95 } // end namespace flair
96 #endif // SIMULASER_H
Abstract class for data types.
Definition: io_data.h:94
Abstract class for input/ouput system.
Definition: IODevice.h:44
Classe generique intégrant les telemetres laser.
Definition: LaserRangeFinder.h:38
namespace of the flair Framework
Definition: Ahrs.h:19
Class displaying a QSpinBox on the ground station.
Definition: SpinBox.h:28
Definition: SimuLaser.h:34
core::SharedMem * shmem
SharedMem to access datas.
Definition: SimuLaser.h:72
~SimuLaser()
Destructor.
Main class of the Framework library.
Definition: FrameworkManager.h:45
Abstract class for a thread.
Class defining a shared memory.
Definition: SharedMem.h:32
Abstract class for a thread.
Definition: Thread.h:38
Classe generique des telemetres laser.
SimuLaser(const core::FrameworkManager *parent, std::string name, uint32_t dev_id, uint8_t priority)
Constructor.