Last change
on this file since 4 was 3, checked in by Sanahuja Guillaume, 8 years ago |
sensoractuator
|
File size:
1.4 KB
|
Rev | 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 ParrotBatteryMonitor.h
|
---|
| 7 | * \brief Parrot battery monitor
|
---|
| 8 | * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 9 | * \date 2014/01/24
|
---|
| 10 | * \version 4.0
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | #ifndef PARROTBATTERYMONITOR_H
|
---|
| 14 | #define PARROTBATTERYMONITOR_H
|
---|
| 15 |
|
---|
| 16 | #include <BatteryMonitor.h>
|
---|
| 17 | #include <Thread.h>
|
---|
| 18 |
|
---|
| 19 | namespace flair
|
---|
| 20 | {
|
---|
| 21 | namespace gui
|
---|
| 22 | {
|
---|
| 23 | class Layout;
|
---|
| 24 | }
|
---|
| 25 | namespace core
|
---|
| 26 | {
|
---|
| 27 | class Unix_I2cPort;
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | namespace sensor
|
---|
| 31 | {
|
---|
| 32 | /*! \class ParrotBatteryMonitor
|
---|
| 33 | *
|
---|
| 34 | * \brief Parrot battery monitor
|
---|
| 35 | */
|
---|
| 36 | class ParrotBatteryMonitor : public core::Thread,public BatteryMonitor
|
---|
| 37 | {
|
---|
| 38 | public:
|
---|
| 39 | /*!
|
---|
| 40 | * \brief Constructor
|
---|
| 41 | *
|
---|
| 42 | * Construct a ParrotBatteryMonitor at given position.
|
---|
| 43 | *
|
---|
| 44 | * \param position position
|
---|
| 45 | * \param name name
|
---|
| 46 | */
|
---|
| 47 | ParrotBatteryMonitor(const gui::LayoutPosition* position,std::string name);
|
---|
| 48 |
|
---|
| 49 | /*!
|
---|
| 50 | * \brief Destructor
|
---|
| 51 | *
|
---|
| 52 | */
|
---|
| 53 | ~ParrotBatteryMonitor();
|
---|
| 54 |
|
---|
| 55 | private:
|
---|
| 56 | /*!
|
---|
| 57 | * \brief Run function
|
---|
| 58 | *
|
---|
| 59 | * Reimplemented from Thread.
|
---|
| 60 | *
|
---|
| 61 | */
|
---|
| 62 | void Run(void);
|
---|
| 63 |
|
---|
| 64 | core::Unix_I2cPort* port;
|
---|
| 65 | };
|
---|
| 66 | }; // end namespace sensor
|
---|
| 67 | }; // end namespace flair
|
---|
| 68 | #endif // PARROTBATTERYMONITOR_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.