source: flair-src/trunk/lib/FlairSimulator/src/X8.h@ 276

Last change on this file since 276 was 214, checked in by Sanahuja Guillaume, 7 years ago

matrix

File size: 1.5 KB
RevLine 
[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}
[8]5// created: 2014/04/03
6// filename: X8.h
7//
8// author: Majd Saied, Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: classe definissant un X8
14//
15/*********************************************************************/
16
17#ifndef X8_H
18#define X8_H
19
20#include <Model.h>
21
[15]22namespace flair {
23namespace core {
24class Mutex;
[8]25}
[15]26namespace gui {
27class DoubleSpinBox;
[214]28class SpinBox;
[15]29}
30namespace actuator {
31class SimuBldc;
32}
33}
[8]34
[15]35namespace flair {
36namespace simulator {
37class Blade;
[8]38
[15]39class X8 : public Model {
40public:
[158]41 X8(std::string name, uint32_t modelId);
[15]42 ~X8();
43 virtual void Draw(void);
44 virtual void ExtraDraw(void){};
45
46protected:
[8]47#ifdef GL
[15]48 Blade *tfl_blade, *tfr_blade, *trl_blade, *trr_blade;
49 Blade *bfl_blade, *bfr_blade, *brl_blade, *brr_blade;
[8]50#endif
[15]51private:
52 void CalcModel(void);
53#ifdef GL
54 void AnimateModel(void);
55 size_t dbtSize(void) const;
56 void WritedbtBuf(char *dbtbuf);
57 void ReaddbtBuf(char *dbtbuf);
58 core::Mutex *motor_speed_mutex;
59#endif
[8]60
[15]61 actuator::SimuBldc *motors;
62 float motor_speed[8];
63 gui::DoubleSpinBox *m, *arm_length, *l_cg;
64 gui::DoubleSpinBox *k_mot, *c_mot;
65 gui::DoubleSpinBox *f_air_vert, *f_air_lat;
66 gui::DoubleSpinBox *j_roll, *j_pitch, *j_yaw;
67 gui::DoubleSpinBox *j_r, *sigma, *S;
[214]68 gui::SpinBox *motorTimeout;
[15]69};
[8]70} // end namespace simulator
71} // end namespace flair
72#endif // X8_H
Note: See TracBrowser for help on using the repository browser.