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

Last change on this file since 459 was 370, checked in by Sanahuja Guillaume, 4 years ago

add abilitiy to change x4 and x8 arm color from ground station

File size: 1.6 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
[370]35#ifdef GL
36namespace irr {
37namespace scene {
38class IMesh;
39}
40}
41#endif
42
[15]43namespace flair {
44namespace simulator {
45class Blade;
[8]46
[15]47class X8 : public Model {
48public:
[158]49 X8(std::string name, uint32_t modelId);
[15]50 ~X8();
51 virtual void Draw(void);
52 virtual void ExtraDraw(void){};
53
54protected:
[286]55
[15]56private:
57 void CalcModel(void);
58#ifdef GL
59 void AnimateModel(void);
60 size_t dbtSize(void) const;
61 void WritedbtBuf(char *dbtbuf);
62 void ReaddbtBuf(char *dbtbuf);
63 core::Mutex *motor_speed_mutex;
[286]64 Blade *tfl_blade, *tfr_blade, *trl_blade, *trr_blade;
65 Blade *bfl_blade, *bfr_blade, *brl_blade, *brr_blade;
[370]66 irr::scene::IMesh *colored_arm;
[15]67#endif
[8]68
[15]69 actuator::SimuBldc *motors;
70 float motor_speed[8];
71 gui::DoubleSpinBox *m, *arm_length, *l_cg;
72 gui::DoubleSpinBox *k_mot, *c_mot;
73 gui::DoubleSpinBox *f_air_vert, *f_air_lat;
74 gui::DoubleSpinBox *j_roll, *j_pitch, *j_yaw;
75 gui::DoubleSpinBox *j_r, *sigma, *S;
[214]76 gui::SpinBox *motorTimeout;
[370]77 gui::SpinBox *armColorR,*armColorG,*armColorB;
[15]78};
[8]79} // end namespace simulator
80} // end namespace flair
81#endif // X8_H
Note: See TracBrowser for help on using the repository browser.