source: flair-src/trunk/lib/FlairFilter/src/unexported/X4X8Multiplex_impl.h

Last change on this file 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
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
18namespace flair {
19namespace core {
20class Matrix;
21class io_data;
22}
23namespace gui {
24class DataPlot1D;
25class ComboBox;
26class DoubleSpinBox;
27}
28namespace filter {
29class X4X8Multiplex;
30}
31}
32
33/*! \class X4X8Multiplex_impl
34*
35* \brief Class defining X4 and X8 multiplexing
36*/
37class X4X8Multiplex_impl {
38public:
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
46private:
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.