mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 18:40:34 +08:00
clang-tidy modernize-redundant-void-arg
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
class MathlibTest : public UnitTest
|
||||
{
|
||||
public:
|
||||
virtual bool run_tests(void);
|
||||
virtual bool run_tests();
|
||||
|
||||
private:
|
||||
bool testVector2();
|
||||
@@ -79,7 +79,7 @@ private:
|
||||
|
||||
using namespace math;
|
||||
|
||||
bool MathlibTest::testVector2(void)
|
||||
bool MathlibTest::testVector2()
|
||||
{
|
||||
{
|
||||
Vector<2> v;
|
||||
@@ -101,7 +101,7 @@ bool MathlibTest::testVector2(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MathlibTest::testVector3(void)
|
||||
bool MathlibTest::testVector3()
|
||||
{
|
||||
|
||||
{
|
||||
@@ -139,7 +139,7 @@ bool MathlibTest::testVector3(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MathlibTest::testVector4(void)
|
||||
bool MathlibTest::testVector4()
|
||||
{
|
||||
{
|
||||
Vector<4> v;
|
||||
@@ -160,7 +160,7 @@ bool MathlibTest::testVector4(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MathlibTest::testVector10(void)
|
||||
bool MathlibTest::testVector10()
|
||||
{
|
||||
{
|
||||
Vector<10> v1;
|
||||
@@ -173,7 +173,7 @@ bool MathlibTest::testVector10(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MathlibTest::testMatrix3x3(void)
|
||||
bool MathlibTest::testMatrix3x3()
|
||||
{
|
||||
{
|
||||
Matrix<3, 3> m1;
|
||||
@@ -188,7 +188,7 @@ bool MathlibTest::testMatrix3x3(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MathlibTest::testMatrix10x10(void)
|
||||
bool MathlibTest::testMatrix10x10()
|
||||
{
|
||||
{
|
||||
Matrix<10, 10> m1;
|
||||
@@ -204,7 +204,7 @@ bool MathlibTest::testMatrix10x10(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MathlibTest::testMatrixNonsymmetric(void)
|
||||
bool MathlibTest::testMatrixNonsymmetric()
|
||||
{
|
||||
int rc = true;
|
||||
{
|
||||
@@ -268,7 +268,7 @@ bool MathlibTest::testMatrixNonsymmetric(void)
|
||||
return rc;
|
||||
}
|
||||
|
||||
bool MathlibTest::testRotationMatrixQuaternion(void)
|
||||
bool MathlibTest::testRotationMatrixQuaternion()
|
||||
{
|
||||
// test conversion rotation matrix to quaternion and back
|
||||
math::Matrix<3, 3> R_orig;
|
||||
@@ -299,7 +299,7 @@ bool MathlibTest::testRotationMatrixQuaternion(void)
|
||||
}
|
||||
|
||||
|
||||
bool MathlibTest::testQuaternionfrom_dcm(void)
|
||||
bool MathlibTest::testQuaternionfrom_dcm()
|
||||
{
|
||||
// test against some known values
|
||||
float tol = 0.0001f;
|
||||
@@ -318,7 +318,7 @@ bool MathlibTest::testQuaternionfrom_dcm(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MathlibTest::testQuaternionfrom_euler(void)
|
||||
bool MathlibTest::testQuaternionfrom_euler()
|
||||
{
|
||||
float tol = 0.0001f;
|
||||
math::Quaternion q_true = {1.0f, 0.0f, 0.0f, 0.0f};
|
||||
@@ -353,7 +353,7 @@ bool MathlibTest::testQuaternionfrom_euler(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MathlibTest::testQuaternionRotate(void)
|
||||
bool MathlibTest::testQuaternionRotate()
|
||||
{
|
||||
// test quaternion method "rotate" (rotate vector by quaternion)
|
||||
Vector<3> vector = {1.0f, 1.0f, 1.0f};
|
||||
@@ -419,7 +419,7 @@ bool MathlibTest::testQuaternionRotate(void)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool MathlibTest::run_tests(void)
|
||||
bool MathlibTest::run_tests()
|
||||
{
|
||||
ut_run_test(testVector2);
|
||||
ut_run_test(testVector3);
|
||||
|
||||
Reference in New Issue
Block a user