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
|
---|
20 | namespace flair {
|
---|
21 | namespace core {
|
---|
22 | class FrameworkManager;
|
---|
23 | }
|
---|
24 | namespace gui {
|
---|
25 | class PushButton;
|
---|
26 | class SpinBox;
|
---|
27 | }
|
---|
28 | namespace sensor {
|
---|
29 | class Sinus;
|
---|
30 | }
|
---|
31 | namespace filter {
|
---|
32 | class LowPassFilter;
|
---|
33 | class ButterworthLowPass;
|
---|
34 | class MeanFilter;
|
---|
35 | }
|
---|
36 | }
|
---|
37 |
|
---|
38 |
|
---|
39 | class Loop : public flair::core::Thread
|
---|
40 | {
|
---|
41 | public:
|
---|
42 | /*!
|
---|
43 | * \brief Constructor
|
---|
44 | *
|
---|
45 | * Builds main loop
|
---|
46 | *
|
---|
47 | * \param parent the FrameworkManager to use
|
---|
48 | * \param name object name
|
---|
49 | * \param priority Thread priority, 51 by default (1:mini, 99:maxi)
|
---|
50 | */
|
---|
51 | Loop(flair::core::FrameworkManager* parent,std::string name,int priority=51);
|
---|
52 |
|
---|
53 | /*!
|
---|
54 | * \brief Destructor
|
---|
55 | */
|
---|
56 | ~Loop();
|
---|
57 |
|
---|
58 | private:
|
---|
59 | void Run(void);
|
---|
60 |
|
---|
61 | flair::sensor::Sinus *sinus;
|
---|
62 | flair::filter::LowPassFilter *firstLowPass;
|
---|
63 | flair::filter::ButterworthLowPass *thirdLowPass;
|
---|
64 | flair::filter::MeanFilter *mean,*meanOnfirstLowPass;
|
---|
65 | flair::gui::PushButton *startLogButton,*stopLogButton,*killButton;
|
---|
66 | flair::gui::SpinBox *period;
|
---|
67 | };
|
---|
68 |
|
---|
69 | #endif // LOOP_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.