source: flair-src/trunk/lib/FlairSensorActuator/src/ParrotGps.h@ 3

Last change on this file since 3 was 3, checked in by Sanahuja Guillaume, 6 years ago

sensoractuator

File size: 1.9 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 ParrotGps.h
7 * \brief Class for Ardrone 2 gps receiver
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2014/06/04
10 * \version 4.0
11 */
12
13#ifndef PARROTGPS_H
14#define PARROTGPS_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 ParrotGps
33 *
34 * \brief Class for Ardrone 2 gps receiver
35 */
36 class ParrotGps : 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 ParrotGps(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 ~ParrotGps();
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 // PARROTGPS_H
Note: See TracBrowser for help on using the repository browser.