source: flair-dev/trunk/include/FlairSensorActuator/Mb800.h@ 12

Last change on this file since 12 was 4, checked in by Sanahuja Guillaume, 9 years ago

sensoractuator

File size: 1.8 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 <Gps.h>
18
19namespace flair
20{
21 namespace core
22 {
23 class FrameworkManager;
24 class SerialPort;
25 }
26}
27
28namespace flair
29{
30namespace sensor
31{
32 /*! \class Mb800
33 *
34 * \brief Class for mb800 gps receiver
35 */
36 class Mb800 : public core::Thread, public Gps
37 {
38 public:
39 /*!
40 * \brief Constructor
41 *
42 * Construct a Mb800.
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 Mb800(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 ~Mb800();
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 void Sync(void);
77 core::SerialPort *serialport;
78 };
79} // end namespace sensor
80} // end namespace framewor
81#endif // MB800_H
Note: See TracBrowser for help on using the repository browser.