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

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

Reformatting

File size: 1.3 KB
Line 
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// necessary include, as Thread is a base of our class
17#include <Thread.h>
18
19// forward declaration for other classes
20namespace flair {
21namespace core {
22class FrameworkManager;
23}
24namespace gui {
25class PushButton;
26class SpinBox;
27}
28namespace sensor {
29class Sinus;
30}
31namespace filter {
32class LowPassFilter;
33class ButterworthLowPass;
34class MeanFilter;
35}
36}
37
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);
51
52 /*!
53 * \brief Destructor
54 */
55 ~Loop();
56
57private:
58 void Run(void);
59
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;
66};
67
68#endif // LOOP_H
Note: See TracBrowser for help on using the repository browser.