Changeset 214 in flair-src for trunk/lib/FlairFilter/src/Pid_impl.cpp
- Timestamp:
- 02/07/18 17:49:27 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairFilter/src/Pid_impl.cpp
r148 r214 17 17 #include "Pid_impl.h" 18 18 #include "Pid.h" 19 #include < cvmatrix.h>19 #include <Matrix.h> 20 20 #include <Layout.h> 21 21 #include <GroupBox.h> … … 34 34 35 35 // init matrix 36 self->input = new cvmatrix(self, 2, 1, floatType, name);36 self->input = new Matrix(self, 2, 1, floatType, name); 37 37 38 38 cvmatrix_descriptor *desc = new cvmatrix_descriptor(4, 1); … … 41 41 desc->SetElementName(2, 0, "d"); 42 42 desc->SetElementName(3, 0, "p+i+d"); 43 state = new cvmatrix(self, desc, floatType, name);43 state = new Matrix(self, desc, floatType, name); 44 44 delete desc; 45 45 … … 71 71 float p, d, total; 72 72 float delta_t; 73 cvmatrix *input = (cvmatrix *)data; 73 const Matrix* input = dynamic_cast<const Matrix*>(data); 74 75 if (!input) { 76 self->Warn("casting %s to Matrix failed\n",data->ObjectName().c_str()); 77 return; 78 } 74 79 75 80 if (T->Value() == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.