Changeset 167 in flair-src for trunk/lib/FlairMeta
- Timestamp:
- Apr 12, 2017, 1:59:38 PM (8 years ago)
- Location:
- trunk/lib/FlairMeta/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairMeta/src/MetaVrpnObject.cpp
r148 r167 28 28 #include <TabWidget.h> 29 29 #include <cvmatrix.h> 30 #include <Vector3D.h>31 30 32 31 using std::string; … … 55 54 desc->SetElementName(i, 0, Output()->Name(i, 0)); 56 55 } 57 cvmatrix *prev_value = new cvmatrix(this, desc, elementDataType, name);56 cvmatrix *prev_value = new cvmatrix(this, desc, floatType, name); 58 57 delete desc; 59 58 … … 66 65 desc->SetElementName(i, 0, "d" + Output()->Name(i, 0)); 67 66 } 68 prev_value = new cvmatrix(this, desc, elementDataType, name);67 prev_value = new cvmatrix(this, desc, floatType, name); 69 68 delete desc; 70 69 … … 95 94 DataPlot2D *MetaVrpnObject::XyPlot(void) const { return xy_plot; } 96 95 97 void MetaVrpnObject::GetSpeed(Vector3D &speed) const {96 void MetaVrpnObject::GetSpeed(Vector3Df &speed) const { 98 97 speed.x = euler->Output(4, 0); 99 98 speed.y = euler->Output(5, 0); -
trunk/lib/FlairMeta/src/MetaVrpnObject.h
r122 r167 15 15 16 16 #include <VrpnObject.h> 17 #include "io_data.h" 17 #include <io_data.h> 18 #include <Vector3D.h> 18 19 19 20 namespace flair { 20 namespace core {21 class Vector3D;22 class FloatType;23 }24 21 namespace gui { 25 22 class DataPlot1D; … … 51 48 gui::DataPlot1D *VzPlot(void) const; // 1,2 52 49 gui::DataPlot2D *XyPlot(void) const; 53 void GetSpeed(core::Vector3D &speed) const;50 void GetSpeed(core::Vector3Df &speed) const; 54 51 55 52 private: … … 60 57 gui::DataPlot1D *vx_opti_plot, *vy_opti_plot, *vz_opti_plot; 61 58 gui::Tab *plot_tab; 62 core::FloatType elementDataType;63 59 }; 64 60 } // end namespace meta -
trunk/lib/FlairMeta/src/UavStateMachine.cpp
r164 r167 132 132 } 133 133 134 const Vector3D &UavStateMachine::GetCurrentAngularSpeed(void) const {134 const Vector3Df &UavStateMachine::GetCurrentAngularSpeed(void) const { 135 135 return currentAngularSpeed; 136 136 } … … 423 423 const AhrsData *refOrientation = ComputeReferenceOrientation(); 424 424 Quaternion refQuaternion; 425 Vector3D refAngularRates;425 Vector3Df refAngularRates; 426 426 refOrientation->GetQuaternionAndAngularRates(refQuaternion, 427 427 refAngularRates); -
trunk/lib/FlairMeta/src/UavStateMachine.h
r165 r167 107 107 const core::Quaternion &GetCurrentQuaternion(void) const; 108 108 109 const core::Vector3D &GetCurrentAngularSpeed(void) const;109 const core::Vector3Df &GetCurrentAngularSpeed(void) const; 110 110 111 111 void Land(void); … … 267 267 268 268 core::Quaternion currentQuaternion; 269 core::Vector3D currentAngularSpeed;269 core::Vector3Df currentAngularSpeed; 270 270 271 271 const core::AhrsData *ComputeReferenceOrientation(void);
Note:
See TracChangeset
for help on using the changeset viewer.