Changeset 15 in flair-src for trunk/lib/FlairFilter/src/unexported/JoyReference_impl.h
- Timestamp:
- 04/08/16 15:40:57 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairFilter/src/unexported/JoyReference_impl.h
r10 r15 24 24 25 25 namespace flair { 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 26 namespace core { 27 class cvmatrix; 28 class io_data; 29 class AhrsData; 30 } 31 namespace gui { 32 class LayoutPosition; 33 class GroupBox; 34 class DoubleSpinBox; 35 class SpinBox; 36 class Label; 37 class PushButton; 38 } 39 namespace filter { 40 class JoyReference; 41 } 42 42 } 43 43 44 44 class JoyReference_impl { 45 45 46 public: 47 JoyReference_impl(flair::filter::JoyReference *self,const flair::gui::LayoutPosition* position,std::string name); 48 ~JoyReference_impl(); 49 void SetRollAxis(float value); 50 void SetPitchAxis(float value); 51 void SetYawAxis(float value); 52 void SetAltitudeAxis(float value); 53 float ZRef(void) const; 54 float dZRef(void) const; 55 float RollTrim(void) const; 56 float PitchTrim(void) const; 57 void SetYawRef(float value); 58 void SetZRef(float value); 59 void RollTrimUp(void); 60 void RollTrimDown(void); 61 void PitchTrimUp(void); 62 void PitchTrimDown(void); 63 void Update(flair::core::Time time); 64 void UpdateFrom(const flair::core::io_data *data); 65 flair::core::cvmatrix *output; 66 flair::core::AhrsData *ahrsData; 46 public: 47 JoyReference_impl(flair::filter::JoyReference *self, 48 const flair::gui::LayoutPosition *position, 49 std::string name); 50 ~JoyReference_impl(); 51 void SetRollAxis(float value); 52 void SetPitchAxis(float value); 53 void SetYawAxis(float value); 54 void SetAltitudeAxis(float value); 55 float ZRef(void) const; 56 float dZRef(void) const; 57 float RollTrim(void) const; 58 float PitchTrim(void) const; 59 void SetYawRef(float value); 60 void SetZRef(float value); 61 void RollTrimUp(void); 62 void RollTrimDown(void); 63 void PitchTrimUp(void); 64 void PitchTrimDown(void); 65 void Update(flair::core::Time time); 66 void UpdateFrom(const flair::core::io_data *data); 67 flair::core::cvmatrix *output; 68 flair::core::AhrsData *ahrsData; 67 69 68 69 70 private: 71 flair::core::cvmatrix *input; 70 72 71 72 flair::gui::DoubleSpinBox *deb_roll,*deb_pitch,*deb_wz,*deb_dz;73 74 flair::gui::Label *label_roll,*label_pitch;75 flair::gui::PushButton *button_roll,*button_pitch;73 flair::gui::GroupBox *reglages_groupbox; 74 flair::gui::DoubleSpinBox *deb_roll, *deb_pitch, *deb_wz, *deb_dz; 75 flair::gui::DoubleSpinBox *trim; 76 flair::gui::Label *label_roll, *label_pitch; 77 flair::gui::PushButton *button_roll, *button_pitch; 76 78 77 78 flair::core::Quaternion q_z=flair::core::Quaternion(1,0,0,0);79 float trim_roll,trim_pitch;80 79 float z_ref; 80 flair::core::Quaternion q_z = flair::core::Quaternion(1, 0, 0, 0); 81 float trim_roll, trim_pitch; 82 flair::core::Time previous_time; 81 83 82 84 flair::filter::JoyReference *self; 83 85 }; 84 86
Note:
See TracChangeset
for help on using the changeset viewer.