Merge pull request #3153 from dronecrew/matrix_update

Matrix update to fix LPE for nuttx
This commit is contained in:
James Goppert
2015-11-08 12:50:26 -05:00
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -339,9 +339,8 @@ public:
arm_mat_inverse_f32(&this->arm_mat, &res.arm_mat);
return res;
#else
matrix::Matrix<float, M, N> Me(this->arm_mat.pData);
matrix::Matrix<float, M, N> MyInverse = Me.inverse(); //not sure if A = A.inverse() is a good idea
Matrix<M, N> res(MyInverse.data());
matrix::SquareMatrix<float, M> Me = matrix::Matrix<float, M, N>(this->arm_mat.pData);
Matrix<M, N> res(Me.I().data());
return res;
#endif
}