Last change
on this file since 12 was 4, checked in by Sanahuja Guillaume, 9 years ago |
sensoractuator
|
File size:
1.8 KB
|
Rev | Line | |
---|
[4] | 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 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 |
|
---|
| 19 | namespace flair
|
---|
| 20 | {
|
---|
| 21 | namespace core
|
---|
| 22 | {
|
---|
| 23 | class FrameworkManager;
|
---|
| 24 | class SerialPort;
|
---|
| 25 | }
|
---|
| 26 | }
|
---|
| 27 |
|
---|
| 28 | namespace flair
|
---|
| 29 | {
|
---|
| 30 | namespace sensor
|
---|
| 31 | {
|
---|
| 32 | /*! \class Novatel
|
---|
| 33 | *
|
---|
| 34 | * \brief Class for Novatel gps receiver
|
---|
| 35 | */
|
---|
| 36 | class Novatel : public core::Thread, public Gps
|
---|
| 37 | {
|
---|
| 38 | public:
|
---|
| 39 | /*!
|
---|
| 40 | * \brief Constructor
|
---|
| 41 | *
|
---|
| 42 | * Construct a Novatel.
|
---|
| 43 | *
|
---|
| 44 | * \param parent parent
|
---|
| 45 | * \param name name
|
---|
| 46 | * \param serialport serialport
|
---|
| 47 | * \param NMEAFlags NMEA sentances to enable
|
---|
| 48 | * \param priority priority of the Thread
|
---|
| 49 | */
|
---|
| 50 | Novatel(const core::FrameworkManager* parent,std::string name,core::SerialPort *serialport,Gps::NMEAFlags_t NMEAFlags,uint8_t priority);
|
---|
| 51 |
|
---|
| 52 | /*!
|
---|
| 53 | * \brief Destructor
|
---|
| 54 | *
|
---|
| 55 | */
|
---|
| 56 | ~Novatel();
|
---|
| 57 |
|
---|
| 58 | private:
|
---|
| 59 | /*!
|
---|
| 60 | * \brief Update using provided datas
|
---|
| 61 | *
|
---|
| 62 | * Reimplemented from IODevice.
|
---|
| 63 | *
|
---|
| 64 | * \param data data from the parent to process
|
---|
| 65 | */
|
---|
| 66 | void UpdateFrom(const core::io_data *data){};
|
---|
| 67 |
|
---|
| 68 | /*!
|
---|
| 69 | * \brief Run function
|
---|
| 70 | *
|
---|
| 71 | * Reimplemented from Thread.
|
---|
| 72 | *
|
---|
| 73 | */
|
---|
| 74 | void Run(void);
|
---|
| 75 |
|
---|
| 76 | core::SerialPort *serialport;
|
---|
| 77 | void Sync(void);
|
---|
| 78 | };
|
---|
| 79 | } // end namespace sensor
|
---|
| 80 | } // end namespace framewor
|
---|
| 81 | #endif // Novatel_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.