Last change
on this file since 464 was 421, checked in by Sanahuja Guillaume, 3 years ago |
add a permanent trim, usefull when uav is not well balanced (ie intel aero)
|
File size:
1.2 KB
|
Rev | Line | |
---|
[10] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[10] | 4 | // %flair:license}
|
---|
[7] | 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 |
|
---|
[15] | 18 | namespace flair {
|
---|
| 19 | namespace core {
|
---|
[214] | 20 | class Matrix;
|
---|
[15] | 21 | class io_data;
|
---|
[7] | 22 | }
|
---|
[15] | 23 | namespace gui {
|
---|
| 24 | class DataPlot1D;
|
---|
| 25 | class ComboBox;
|
---|
[421] | 26 | class DoubleSpinBox;
|
---|
[15] | 27 | }
|
---|
| 28 | namespace filter {
|
---|
| 29 | class X4X8Multiplex;
|
---|
| 30 | }
|
---|
| 31 | }
|
---|
[7] | 32 |
|
---|
| 33 | /*! \class X4X8Multiplex_impl
|
---|
| 34 | *
|
---|
| 35 | * \brief Class defining X4 and X8 multiplexing
|
---|
| 36 | */
|
---|
[15] | 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);
|
---|
[7] | 45 |
|
---|
[15] | 46 | private:
|
---|
[214] | 47 | flair::core::Matrix *output;
|
---|
[15] | 48 | flair::gui::ComboBox *pas;
|
---|
| 49 | flair::gui::DataPlot1D *plots[4];
|
---|
[421] | 50 | flair::gui::DoubleSpinBox *permanent_trim_roll,*permanent_trim_pitch;
|
---|
[15] | 51 | flair::filter::X4X8Multiplex *self;
|
---|
| 52 | float Set(float trim, float u);
|
---|
[7] | 53 | };
|
---|
| 54 |
|
---|
| 55 | #endif // X4X8MULTIPLEX_IMPL_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.