Changeset 214 in flair-src for trunk/lib/FlairFilter/src/JoyReference_impl.cpp
- Timestamp:
- Feb 7, 2018, 5:49:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairFilter/src/JoyReference_impl.cpp
r167 r214 20 20 #include <AhrsData.h> 21 21 #include <Euler.h> 22 #include < cvmatrix.h>22 #include <Matrix.h> 23 23 #include <Layout.h> 24 24 #include <GroupBox.h> … … 40 40 41 41 ahrsData = new AhrsData(self); 42 input = new cvmatrix(self, 4, 1, floatType, name);42 input = new Matrix(self, 4, 1, floatType, name); 43 43 44 44 cvmatrix_descriptor *desc = new cvmatrix_descriptor(4, 1); … … 48 48 desc->SetElementName(2, 0, "trim_roll"); 49 49 desc->SetElementName(3, 0, "trim_pitch"); 50 output = new cvmatrix(self, desc, floatType, name);50 output = new Matrix(self, desc, floatType, name); 51 51 delete desc; 52 52 … … 147 147 148 148 void JoyReference_impl::UpdateFrom(const io_data *data) { 149 cvmatrix *input = (cvmatrix *)data; 149 const Matrix* input = dynamic_cast<const Matrix*>(data); 150 151 if (!input) { 152 self->Warn("casting %s to Matrix failed\n",data->ObjectName().c_str()); 153 return; 154 } 150 155 151 156 if (previous_time == 0)
Note:
See TracChangeset
for help on using the changeset viewer.