source: flair-src/trunk/demos/Sinus/src/Loop.h@ 340

Last change on this file since 340 was 16, checked in by Bayard Gildas, 9 years ago

Reformatting

File size: 1.3 KB
RevLine 
[14]1// created: 2013/06/26
2// filename: Loop.h
3//
4// author: Guillaume Sanahuja
5// Copyright Heudiasyc UMR UTC/CNRS 7253
6//
7// version: $Id: $
8//
9//
10//
11/*********************************************************************/
12
13#ifndef LOOP_H
14#define LOOP_H
15
[16]16// necessary include, as Thread is a base of our class
[14]17#include <Thread.h>
18
[16]19// forward declaration for other classes
[14]20namespace flair {
[16]21namespace core {
22class FrameworkManager;
[14]23}
[16]24namespace gui {
25class PushButton;
26class SpinBox;
27}
28namespace sensor {
29class Sinus;
30}
31namespace filter {
32class LowPassFilter;
33class ButterworthLowPass;
34class MeanFilter;
35}
36}
[14]37
[16]38class Loop : public flair::core::Thread {
39public:
40 /*!
41 * \brief Constructor
42 *
43 * Builds main loop
44 *
45 * \param parent the FrameworkManager to use
46 * \param name object name
47 * \param priority Thread priority, 51 by default (1:mini, 99:maxi)
48 */
49 Loop(flair::core::FrameworkManager *parent, std::string name,
50 int priority = 51);
[14]51
[16]52 /*!
53 * \brief Destructor
54 */
55 ~Loop();
[14]56
[16]57private:
58 void Run(void);
[14]59
[16]60 flair::sensor::Sinus *sinus;
61 flair::filter::LowPassFilter *firstLowPass;
62 flair::filter::ButterworthLowPass *thirdLowPass;
63 flair::filter::MeanFilter *mean, *meanOnfirstLowPass;
64 flair::gui::PushButton *startLogButton, *stopLogButton, *killButton;
65 flair::gui::SpinBox *period;
[14]66};
67
68#endif // LOOP_H
Note: See TracBrowser for help on using the repository browser.