Last change
on this file since 457 was 457, checked in by Sanahuja Guillaume, 2 years ago |
simple plane for Armando
|
File size:
1.4 KB
|
Rev | 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 | // created: 2021/12/22
|
---|
| 6 | // filename: Plane.h
|
---|
| 7 | //
|
---|
| 8 | // author: Armando Alatorre Sevilla, Guillaume Sanahuja
|
---|
| 9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 10 | //
|
---|
| 11 | // version: $Id: $
|
---|
| 12 | //
|
---|
| 13 | // purpose: classe definissant un avion
|
---|
| 14 | //
|
---|
| 15 | /*********************************************************************/
|
---|
| 16 |
|
---|
| 17 | #ifndef PLANE_H
|
---|
| 18 | #define PLANE_H
|
---|
| 19 |
|
---|
| 20 | #include <Model.h>
|
---|
| 21 |
|
---|
| 22 | namespace flair {
|
---|
| 23 | namespace core {
|
---|
| 24 | class Mutex;
|
---|
| 25 | }
|
---|
| 26 | namespace gui {
|
---|
| 27 | class DoubleSpinBox;
|
---|
| 28 | class SpinBox;
|
---|
| 29 | }
|
---|
| 30 | namespace actuator {
|
---|
| 31 | class SimuBldc;
|
---|
| 32 | }
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | #ifdef GL
|
---|
| 36 | namespace irr {
|
---|
| 37 | namespace scene {
|
---|
| 38 | class IMesh;
|
---|
| 39 | }
|
---|
| 40 | }
|
---|
| 41 | #endif
|
---|
| 42 |
|
---|
| 43 | namespace flair {
|
---|
| 44 | namespace simulator {
|
---|
| 45 | class Blade;
|
---|
| 46 | class MeshSceneNode;
|
---|
| 47 |
|
---|
| 48 | class Plane : public Model {
|
---|
| 49 | public:
|
---|
| 50 | Plane(std::string name, uint32_t modelId);
|
---|
| 51 | ~Plane();
|
---|
| 52 | #ifdef GL
|
---|
| 53 | virtual void Draw(void);
|
---|
| 54 | virtual void ExtraDraw(void){};
|
---|
| 55 | #endif
|
---|
| 56 |
|
---|
| 57 | private:
|
---|
| 58 | void CalcModel(void);
|
---|
| 59 | #ifdef GL
|
---|
| 60 | void AnimateModel(void);
|
---|
| 61 | size_t dbtSize(void) const;
|
---|
| 62 | void WritedbtBuf(char *dbtbuf);
|
---|
| 63 | void ReaddbtBuf(char *dbtbuf);
|
---|
| 64 | core::Mutex *motor_speed_mutex;
|
---|
| 65 | Blade *f_blade;
|
---|
| 66 | MeshSceneNode *l_aileron,*r_aileron;
|
---|
| 67 | #endif
|
---|
| 68 |
|
---|
| 69 | actuator::SimuBldc *motor;
|
---|
| 70 | float motor_speed;
|
---|
| 71 | gui::DoubleSpinBox *m;
|
---|
| 72 | gui::SpinBox *motorTimeout;
|
---|
| 73 | };
|
---|
| 74 | } // end namespace simulator
|
---|
| 75 | } // end namespace flair
|
---|
| 76 | #endif // PLANE_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.