source: flair-src/trunk/lib/FlairSensorActuator/src/Mb800.h@ 140

Last change on this file since 140 was 137, checked in by Sanahuja Guillaume, 5 years ago

singleton manager

File size: 1.4 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 Mb800.h
7 * \brief Class for mb800 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 MB800_H
14#define MB800_H
15
16#include <Thread.h>
17#include <NmeaGps.h>
18
19namespace flair {
20namespace core {
21class SerialPort;
22}
23}
24
25namespace flair {
26namespace sensor {
27/*! \class Mb800
28*
29* \brief Class for mb800 gps receiver
30*/
31class Mb800 : public core::Thread, public NmeaGps {
32public:
33 /*!
34 * \brief Constructor
35 *
36 * Construct a Mb800.
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 Mb800(std::string name,
45 core::SerialPort *serialport, NmeaGps::NMEAFlags_t NMEAFlags,
46 uint8_t priority);
47
48 /*!
49 * \brief Destructor
50 *
51 */
52 ~Mb800();
53
54private:
55 /*!
56 * \brief Update using provided datas
57 *
58 * Reimplemented from IODevice.
59 *
60 * \param data data from the parent to process
61 */
62 void UpdateFrom(const core::io_data *data){};
63
64 /*!
65 * \brief Run function
66 *
67 * Reimplemented from Thread.
68 *
69 */
70 void Run(void);
71
72 void Sync(void);
73 core::SerialPort *serialport;
74};
75} // end namespace sensor
76} // end namespace framewor
77#endif // MB800_H
Note: See TracBrowser for help on using the repository browser.