mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 15:40:31 +08:00
Fix format with Artistic Style 3.1
This commit is contained in:
committed by
Daniel Agar
parent
b299d6222a
commit
e380adb9b6
@@ -82,31 +82,11 @@ private:
|
||||
};
|
||||
|
||||
static constexpr float _follow_position_matricies[4][9] = {
|
||||
{
|
||||
1.0F, -1.0F, 0.0F,
|
||||
1.0F, 1.0F, 0.0F,
|
||||
0.0F, 0.0F, 1.0F
|
||||
}, // follow right
|
||||
|
||||
{
|
||||
-1.0F, 0.0F, 0.0F,
|
||||
0.0F, -1.0F, 0.0F,
|
||||
0.0F, 0.0F, 1.0F
|
||||
}, // follow behind
|
||||
|
||||
{
|
||||
1.0F, 0.0F, 0.0F,
|
||||
0.0F, 1.0F, 0.0F,
|
||||
0.0F, 0.0F, 1.0F
|
||||
}, // follow front
|
||||
|
||||
{
|
||||
1.0F, 1.0F, 0.0F,
|
||||
-1.0F, 1.0F, 0.0F,
|
||||
0.0F, 0.0F, 1.0F
|
||||
}
|
||||
}; // follow left side
|
||||
|
||||
{ 1.0F, -1.0F, 0.0F, 1.0F, 1.0F, 0.0F, 0.0F, 0.0F, 1.0F}, // follow right
|
||||
{-1.0F, 0.0F, 0.0F, 0.0F, -1.0F, 0.0F, 0.0F, 0.0F, 1.0F}, // follow behind
|
||||
{ 1.0F, 0.0F, 0.0F, 0.0F, 1.0F, 0.0F, 0.0F, 0.0F, 1.0F}, // follow front
|
||||
{ 1.0F, 1.0F, 0.0F, -1.0F, 1.0F, 0.0F, 0.0F, 0.0F, 1.0F} // follow left side
|
||||
};
|
||||
|
||||
DEFINE_PARAMETERS(
|
||||
(ParamFloat<px4::params::NAV_MIN_FT_HT>) _param_min_alt,
|
||||
|
||||
@@ -363,11 +363,10 @@ bool MatrixTest::inverseTests()
|
||||
4, 5, 6,
|
||||
7, 8, 10
|
||||
};
|
||||
float data_check[9] = {
|
||||
-0.4f, -0.8f, 0.6f,
|
||||
-0.4f, 4.2f, -2.4f,
|
||||
0.6f, -2.8f, 1.6f
|
||||
};
|
||||
float data_check[9] = {-0.4f, -0.8f, 0.6f,
|
||||
-0.4f, 4.2f, -2.4f,
|
||||
0.6f, -2.8f, 1.6f
|
||||
};
|
||||
|
||||
SquareMatrix<float, 3> A(data);
|
||||
SquareMatrix<float, 3> A_I = inv(A);
|
||||
|
||||
Reference in New Issue
Block a user