Last change
on this file since 20 was 13, checked in by Bayard Gildas, 9 years ago |
formatting script + include reformatted
|
File size:
1.5 KB
|
Rev | Line | |
---|
[4] | 1 | // %flair:license{
|
---|
[13] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[4] | 4 | // %flair:license}
|
---|
| 5 | /*!
|
---|
| 6 | * \file Novatel.h
|
---|
| 7 | * \brief Class for Novatel gps receiver
|
---|
| 8 | * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 9 | * \date 2013/08/23
|
---|
| 10 | * \version 4.0
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | #ifndef Novatel_H
|
---|
| 14 | #define Novatel_H
|
---|
| 15 |
|
---|
| 16 | #include <Thread.h>
|
---|
| 17 | #include <Gps.h>
|
---|
| 18 |
|
---|
[13] | 19 | namespace flair {
|
---|
| 20 | namespace core {
|
---|
| 21 | class FrameworkManager;
|
---|
| 22 | class SerialPort;
|
---|
[4] | 23 | }
|
---|
[13] | 24 | }
|
---|
[4] | 25 |
|
---|
[13] | 26 | namespace flair {
|
---|
| 27 | namespace sensor {
|
---|
| 28 | /*! \class Novatel
|
---|
| 29 | *
|
---|
| 30 | * \brief Class for Novatel gps receiver
|
---|
| 31 | */
|
---|
| 32 | class Novatel : public core::Thread, public Gps {
|
---|
| 33 | public:
|
---|
| 34 | /*!
|
---|
| 35 | * \brief Constructor
|
---|
| 36 | *
|
---|
| 37 | * Construct a Novatel.
|
---|
| 38 | *
|
---|
| 39 | * \param parent parent
|
---|
| 40 | * \param name name
|
---|
| 41 | * \param serialport serialport
|
---|
| 42 | * \param NMEAFlags NMEA sentances to enable
|
---|
| 43 | * \param priority priority of the Thread
|
---|
| 44 | */
|
---|
| 45 | Novatel(const core::FrameworkManager *parent, std::string name,
|
---|
| 46 | core::SerialPort *serialport, Gps::NMEAFlags_t NMEAFlags,
|
---|
| 47 | uint8_t priority);
|
---|
[4] | 48 |
|
---|
[13] | 49 | /*!
|
---|
| 50 | * \brief Destructor
|
---|
| 51 | *
|
---|
| 52 | */
|
---|
| 53 | ~Novatel();
|
---|
[4] | 54 |
|
---|
[13] | 55 | private:
|
---|
| 56 | /*!
|
---|
| 57 | * \brief Update using provided datas
|
---|
| 58 | *
|
---|
| 59 | * Reimplemented from IODevice.
|
---|
| 60 | *
|
---|
| 61 | * \param data data from the parent to process
|
---|
| 62 | */
|
---|
| 63 | void UpdateFrom(const core::io_data *data){};
|
---|
[4] | 64 |
|
---|
[13] | 65 | /*!
|
---|
| 66 | * \brief Run function
|
---|
| 67 | *
|
---|
| 68 | * Reimplemented from Thread.
|
---|
| 69 | *
|
---|
| 70 | */
|
---|
| 71 | void Run(void);
|
---|
[4] | 72 |
|
---|
[13] | 73 | core::SerialPort *serialport;
|
---|
| 74 | void Sync(void);
|
---|
| 75 | };
|
---|
[4] | 76 | } // end namespace sensor
|
---|
| 77 | } // end namespace framewor
|
---|
| 78 | #endif // Novatel_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.