Flair
Framework Libre Air
FlairSimulator/src/SimuGps.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 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
namespace of the flair Framework
Definition: Ahrs.h:19
~SimuGps()
Destructor.
Abstract class for input/ouput system.
SimuGps(std::string name, NmeaGps::NMEAFlags_t NMEAFlags, uint32_t modelId, uint32_t deviceId, uint8_t priority)
Constructor.