mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
test_matrix: remove duplicate namespace accesses
This commit is contained in:
parent
2d4ecab3b0
commit
1ecbf8efd2
@ -96,11 +96,6 @@ bool MatrixTest::run_tests()
|
||||
|
||||
ut_declare_test_c(test_matrix, MatrixTest)
|
||||
|
||||
using matrix::Dcmf;
|
||||
using matrix::Quatf;
|
||||
using matrix::Eulerf;
|
||||
using matrix::Vector3f;
|
||||
|
||||
using std::fabs;
|
||||
|
||||
bool MatrixTest::attitudeTests()
|
||||
@ -392,8 +387,6 @@ bool MatrixTest::integrationTests()
|
||||
return true;
|
||||
}
|
||||
|
||||
template class matrix::SquareMatrix<float, 3>;
|
||||
|
||||
bool MatrixTest::inverseTests()
|
||||
{
|
||||
float data[9] = {0, 2, 3,
|
||||
@ -739,7 +732,7 @@ bool MatrixTest::dcmRenormTests()
|
||||
|
||||
if (verbose) {
|
||||
for (int row = 0; row < 3; row++) {
|
||||
matrix::Vector3f rvec(matrix::Matrix<float, 1, 3>(A.row(row)).transpose());
|
||||
Vector3f rvec(Matrix<float, 1, 3>(A.row(row)).transpose());
|
||||
err += fabsf(1.0f - rvec.length());
|
||||
}
|
||||
|
||||
@ -751,7 +744,7 @@ bool MatrixTest::dcmRenormTests()
|
||||
err = 0.0f;
|
||||
|
||||
for (int row = 0; row < 3; row++) {
|
||||
matrix::Vector3f rvec(matrix::Matrix<float, 1, 3>(A.row(row)).transpose());
|
||||
Vector3f rvec(Matrix<float, 1, 3>(A.row(row)).transpose());
|
||||
err += fabsf(1.0f - rvec.length());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user