Flair
Framework Libre Air
NeoM8N.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 NEOM8N_H
14 #define NEOM8N_H
15 
16 #include <Thread.h>
17 #include <NmeaGps.h>
18 
19 namespace flair {
20 namespace core {
21 class SerialPort;
22 }
23 }
24 
25 namespace flair {
26 namespace sensor {
31 class NeoM8N : public core::Thread, public NmeaGps {
32 public:
44  NeoM8N(std::string name,
45  core::SerialPort *serialport,NmeaGps::NMEAFlags_t NMEAFlags,uint8_t priority);
46 
51  ~NeoM8N();
52 
53 private:
61  void UpdateFrom(const core::io_data *data){};
62 
69  void Run(void);
70 
71  void Sync(void);
72  void SendUbx(char* buf,size_t length);//message without header/footer
73  core::SerialPort *serialport;
74 };
75 } // end namespace sensor
76 } // end namespace flair
77 #endif // NEOM8N_H
Abstract class for data types.
Definition: io_data.h:94
Class for mb800 gps receiver.
Definition: NeoM8N.h:31
namespace of the flair Framework
Definition: Ahrs.h:19
~NeoM8N()
Destructor.
Base class for GPS using NMEA sentances.
Base class for GPS using NMEA sentances.
Definition: NmeaGps.h:45
Base class for serial port.
Definition: SerialPort.h:25
NeoM8N(std::string name, core::SerialPort *serialport, NmeaGps::NMEAFlags_t NMEAFlags, uint8_t priority)
Constructor.
NMEAFlags_t
NMEA flags.
Definition: NmeaGps.h:51
Abstract class for a thread.
Abstract class for a thread.
Definition: Thread.h:38