Last change
on this file since 211 was 158, checked in by Sanahuja Guillaume, 8 years ago |
corrected simu/device id for sensors
|
File size:
1.4 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}
|
---|
[8] | 5 | // created: 2012/08/21
|
---|
| 6 | // filename: X4.h
|
---|
| 7 | //
|
---|
| 8 | // author: Osamah Saif, Guillaume Sanahuja
|
---|
| 9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 10 | //
|
---|
| 11 | // version: $Id: $
|
---|
| 12 | //
|
---|
| 13 | // purpose: classe definissant un x4
|
---|
| 14 | //
|
---|
| 15 | /*********************************************************************/
|
---|
| 16 |
|
---|
| 17 | #ifndef X4_H
|
---|
| 18 | #define X4_H
|
---|
| 19 |
|
---|
| 20 | #include <Model.h>
|
---|
| 21 |
|
---|
[15] | 22 | namespace flair {
|
---|
| 23 | namespace core {
|
---|
| 24 | class Mutex;
|
---|
[8] | 25 | }
|
---|
[15] | 26 | namespace gui {
|
---|
| 27 | class DoubleSpinBox;
|
---|
| 28 | }
|
---|
| 29 | namespace actuator {
|
---|
| 30 | class SimuBldc;
|
---|
| 31 | }
|
---|
| 32 | }
|
---|
[8] | 33 |
|
---|
[15] | 34 | namespace flair {
|
---|
| 35 | namespace simulator {
|
---|
| 36 | class Blade;
|
---|
[8] | 37 |
|
---|
[15] | 38 | class X4 : public Model {
|
---|
| 39 | public:
|
---|
[158] | 40 | X4(std::string name, uint32_t modelId);
|
---|
[15] | 41 | ~X4();
|
---|
[8] | 42 | #ifdef GL
|
---|
[15] | 43 | virtual void Draw(void);
|
---|
| 44 | virtual void ExtraDraw(void){};
|
---|
[8] | 45 |
|
---|
[15] | 46 | protected:
|
---|
| 47 | Blade *fl_blade, *fr_blade, *rl_blade, *rr_blade;
|
---|
| 48 | core::Mutex *motor_speed_mutex;
|
---|
[8] | 49 | #endif
|
---|
[15] | 50 | private:
|
---|
| 51 | void CalcModel(void);
|
---|
| 52 | #ifdef GL
|
---|
| 53 | void AnimateModel(void);
|
---|
| 54 | size_t dbtSize(void) const;
|
---|
| 55 | void WritedbtBuf(char *dbtbuf);
|
---|
| 56 | void ReaddbtBuf(char *dbtbuf);
|
---|
| 57 | #endif
|
---|
[8] | 58 |
|
---|
[15] | 59 | actuator::SimuBldc *motors;
|
---|
| 60 | float motor_speed[4];
|
---|
| 61 | gui::DoubleSpinBox *m, *arm_length, *l_cg;
|
---|
| 62 | gui::DoubleSpinBox *k_mot, *c_mot;
|
---|
| 63 | gui::DoubleSpinBox *f_air_vert, *f_air_lat;
|
---|
| 64 | gui::DoubleSpinBox *j_roll, *j_pitch, *j_yaw;
|
---|
| 65 | };
|
---|
[8] | 66 | } // end namespace simulator
|
---|
| 67 | } // end namespace flair
|
---|
| 68 | #endif // X4_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.