Last change
on this file since 421 was 421, checked in by Sanahuja Guillaume, 4 years ago |
add a permanent trim, usefull when uav is not well balanced (ie intel aero)
|
File size:
1.2 KB
|
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 X4X8Multiplex_impl.h
|
---|
7 | * \brief Class defining X4 and X8 multiplexing
|
---|
8 | * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
9 | * \date 2014/04/10
|
---|
10 | * \version 4.0
|
---|
11 | */
|
---|
12 |
|
---|
13 | #ifndef X4X8MULTIPLEX_IMPL_H
|
---|
14 | #define X4X8MULTIPLEX_IMPL_H
|
---|
15 |
|
---|
16 | #include <string>
|
---|
17 |
|
---|
18 | namespace flair {
|
---|
19 | namespace core {
|
---|
20 | class Matrix;
|
---|
21 | class io_data;
|
---|
22 | }
|
---|
23 | namespace gui {
|
---|
24 | class DataPlot1D;
|
---|
25 | class ComboBox;
|
---|
26 | class DoubleSpinBox;
|
---|
27 | }
|
---|
28 | namespace filter {
|
---|
29 | class X4X8Multiplex;
|
---|
30 | }
|
---|
31 | }
|
---|
32 |
|
---|
33 | /*! \class X4X8Multiplex_impl
|
---|
34 | *
|
---|
35 | * \brief Class defining X4 and X8 multiplexing
|
---|
36 | */
|
---|
37 | class X4X8Multiplex_impl {
|
---|
38 | public:
|
---|
39 | X4X8Multiplex_impl(flair::filter::X4X8Multiplex *self, int nb_mot);
|
---|
40 | ~X4X8Multiplex_impl();
|
---|
41 | void UseDefaultPlot(void);
|
---|
42 | void UpdateFrom(const flair::core::io_data *data);
|
---|
43 | int nb_mot;
|
---|
44 | std::string MotorName(int index);
|
---|
45 |
|
---|
46 | private:
|
---|
47 | flair::core::Matrix *output;
|
---|
48 | flair::gui::ComboBox *pas;
|
---|
49 | flair::gui::DataPlot1D *plots[4];
|
---|
50 | flair::gui::DoubleSpinBox *permanent_trim_roll,*permanent_trim_pitch;
|
---|
51 | flair::filter::X4X8Multiplex *self;
|
---|
52 | float Set(float trim, float u);
|
---|
53 | };
|
---|
54 |
|
---|
55 | #endif // X4X8MULTIPLEX_IMPL_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.