Flair
Framework Libre Air
SimuGps.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 SIMUGPS_H
14 #define SIMUGPS_H
15 
16 #include <IODevice.h>
17 
18 namespace flair {
19  namespace core {
20  class SharedMem;
21  }
22 }
23 
24 namespace flair {
25 namespace sensor {
30 class SimuGps : public core::IODevice {
31 public:
42  SimuGps(const core::IODevice *parent, std::string name, uint32_t modelId,uint32_t deviceId);
43 
48  ~SimuGps();
49 
50 private:
58  void UpdateFrom(const core::io_data *data);
59 
60  typedef struct {
61  float e;
62  float n;
63  float u;
64  float ve;
65  float vn;
66  } gps_states_t;
67 
68  std::string ShMemName(uint32_t modelId,uint32_t deviceId);
69 
70  core::SharedMem *shmem;
71 };
72 } // end namespace sensor
73 } // end namespace flair
74 #endif // SIMUGPS_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
~SimuGps()
Destructor.
Class for a simulation GPS.
Definition: SimuGps.h:30
SimuGps(const core::IODevice *parent, std::string name, uint32_t modelId, uint32_t deviceId)
Constructor.
Abstract class for input/ouput system.
Class defining a shared memory.
Definition: SharedMem.h:32