Last change
on this file since 402 was 324, checked in by Sanahuja Guillaume, 5 years ago |
removing opencv dependency
|
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
|
---|
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 | class Loop : public flair::core::Thread {
|
---|
39 | public:
|
---|
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 |
|
---|
57 | private:
|
---|
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.