Last change
on this file since 418 was 324, checked in by Sanahuja Guillaume, 5 years ago |
removing opencv dependency
|
File size:
1.5 KB
|
Line | |
---|
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}
|
---|
5 | /*!
|
---|
6 | * \file NeoM8N.h
|
---|
7 | * \brief Class for NeoM8N gps receiver
|
---|
8 | * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
9 | * \date 2017/08/30
|
---|
10 | * \version 4.0
|
---|
11 | */
|
---|
12 |
|
---|
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 {
|
---|
27 | /*! \class NeoM8N
|
---|
28 | *
|
---|
29 | * \brief Class for mb800 gps receiver
|
---|
30 | */
|
---|
31 | class NeoM8N : public core::Thread, public NmeaGps {
|
---|
32 | public:
|
---|
33 | /*!
|
---|
34 | * \brief Constructor
|
---|
35 | *
|
---|
36 | * Construct a NeoM8N.
|
---|
37 | * It will be child of the FrameworkManager.
|
---|
38 | *
|
---|
39 | * \param name name
|
---|
40 | * \param serialport serialport
|
---|
41 | * \param NMEAFlags NMEA sentances to enable
|
---|
42 | * \param priority priority of the Thread
|
---|
43 | */
|
---|
44 | NeoM8N(std::string name,
|
---|
45 | core::SerialPort *serialport,NmeaGps::NMEAFlags_t NMEAFlags,uint8_t priority);
|
---|
46 |
|
---|
47 | /*!
|
---|
48 | * \brief Destructor
|
---|
49 | *
|
---|
50 | */
|
---|
51 | ~NeoM8N();
|
---|
52 |
|
---|
53 | private:
|
---|
54 | /*!
|
---|
55 | * \brief Update using provided datas
|
---|
56 | *
|
---|
57 | * Reimplemented from IODevice.
|
---|
58 | *
|
---|
59 | * \param data data from the parent to process
|
---|
60 | */
|
---|
61 | void UpdateFrom(const core::io_data *data){};
|
---|
62 |
|
---|
63 | /*!
|
---|
64 | * \brief Run function
|
---|
65 | *
|
---|
66 | * Reimplemented from Thread.
|
---|
67 | *
|
---|
68 | */
|
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.