mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 07:03:34 +08:00
Fix trailing whitespace, EOF newline, indentation
This commit is contained in:
committed by
Julian Oes
parent
1d3da86abb
commit
904ab16558
@@ -1,7 +1,7 @@
|
||||
# libuavcan_kinetis
|
||||
Libuavcan platform driver for Kinetis FlexCAN
|
||||
|
||||
The Directory contains the Kinetis FlexCAN platform driver for Libuavcan on NuttX.
|
||||
The Directory contains the Kinetis FlexCAN platform driver for Libuavcan on NuttX.
|
||||
|
||||
Configuation is set by the NuttX board.h for the following:
|
||||
|
||||
@@ -22,7 +22,7 @@ Things that could be improved:
|
||||
2. Build time command line configuartion clock source
|
||||
- Curently the driver use `const uavcan::uint8_t CLOCKSEL = 0;` To Select OSCERCLK
|
||||
3. Dynamic filter disable. There are no filter enable bits on the FlexCAN, just the number of Filters
|
||||
can be set. But this changes the memory map. So the configuration show below has been chosen.
|
||||
can be set. But this changes the memory map. So the configuration show below has been chosen.
|
||||
|
||||
```
|
||||
/* Layout of Fifo, filters and Message buffers */
|
||||
|
||||
@@ -14,4 +14,3 @@ install(DIRECTORY include/uavcan_kinetis DESTINATION include)
|
||||
install(TARGETS uavcan_kinetis_driver DESTINATION lib)
|
||||
|
||||
# vim: set et ft=cmake fenc=utf-8 ff=unix sts=4 sw=4 ts=4 :)
|
||||
|
||||
|
||||
@@ -14,4 +14,3 @@ install(DIRECTORY include/uavcan_stm32 DESTINATION include)
|
||||
install(TARGETS uavcan_stm32_driver DESTINATION lib)
|
||||
|
||||
# vim: set et ft=cmake fenc=utf-8 ff=unix sts=4 sw=4 ts=4 :)
|
||||
|
||||
|
||||
@@ -182,4 +182,3 @@ private:
|
||||
matrix::Vector3f _acro_rate_max; /**< max attitude rates in acro mode */
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -412,4 +412,3 @@ PARAM_DEFINE_INT32(MC_BAT_SCALE_EN, 0);
|
||||
* @group Multicopter Rate Control
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(MC_DTERM_CUTOFF, 0.f);
|
||||
|
||||
|
||||
@@ -71,4 +71,3 @@ PARAM_DEFINE_FLOAT(CAL_GYRO0_YOFF, 0.0f);
|
||||
* @group Sensor Calibration
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(CAL_GYRO0_ZOFF, 0.0f);
|
||||
|
||||
|
||||
@@ -71,4 +71,3 @@ PARAM_DEFINE_FLOAT(CAL_GYRO1_YOFF, 0.0f);
|
||||
* @group Sensor Calibration
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(CAL_GYRO1_ZOFF, 0.0f);
|
||||
|
||||
|
||||
@@ -71,4 +71,3 @@ PARAM_DEFINE_FLOAT(CAL_GYRO2_YOFF, 0.0f);
|
||||
* @group Sensor Calibration
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(CAL_GYRO2_ZOFF, 0.0f);
|
||||
|
||||
|
||||
@@ -769,14 +769,11 @@ bool MatrixTest::pseudoInverseTests()
|
||||
8.f, 9.f, 10.f, 11.f
|
||||
};
|
||||
|
||||
// *INDENT-OFF*
|
||||
float data0_check[12] = {
|
||||
-0.3375f, -0.1f, 0.1375f,
|
||||
-0.13333333f, -0.03333333f, 0.06666667f,
|
||||
0.07083333f, 0.03333333f, -0.00416667f,
|
||||
0.275f, 0.1f, -0.075f
|
||||
};
|
||||
// *INDENT-ON*
|
||||
float data0_check[12] = {-0.3375f, -0.1f, 0.1375f,
|
||||
-0.13333333f, -0.03333333f, 0.06666667f,
|
||||
0.07083333f, 0.03333333f, -0.00416667f,
|
||||
0.275f, 0.1f, -0.075f
|
||||
};
|
||||
|
||||
Matrix<float, 3, 4> A0(data0);
|
||||
Matrix<float, 4, 3> A0_I = geninv(A0);
|
||||
@@ -792,13 +789,10 @@ bool MatrixTest::pseudoInverseTests()
|
||||
3.f, 7.f, 11.f
|
||||
};
|
||||
|
||||
// *INDENT-OFF*
|
||||
float data1_check[12] = {
|
||||
-0.3375f, -0.13333333f, 0.07083333f, 0.275f,
|
||||
-0.1f, -0.03333333f, 0.03333333f, 0.1f,
|
||||
0.1375f, 0.06666667f, -0.00416667f, -0.075f
|
||||
};
|
||||
// *INDENT-ON*
|
||||
float data1_check[12] = {-0.3375f, -0.13333333f, 0.07083333f, 0.275f,
|
||||
-0.1f, -0.03333333f, 0.03333333f, 0.1f,
|
||||
0.1375f, 0.06666667f, -0.00416667f, -0.075f
|
||||
};
|
||||
|
||||
Matrix<float, 4, 3> A1(data1);
|
||||
Matrix<float, 3, 4> A1_I = geninv(A1);
|
||||
@@ -812,13 +806,10 @@ bool MatrixTest::pseudoInverseTests()
|
||||
4, 5, 6,
|
||||
7, 8, 10
|
||||
};
|
||||
// *INDENT-OFF*
|
||||
float data2_check[9] = {
|
||||
-0.4f, -0.8f, 0.6f,
|
||||
-0.4f, 4.2f, -2.4f,
|
||||
0.6f, -2.8f, 1.6f
|
||||
};
|
||||
// *INDENT-ON*
|
||||
float data2_check[9] = {-0.4f, -0.8f, 0.6f,
|
||||
-0.4f, 4.2f, -2.4f,
|
||||
0.6f, -2.8f, 1.6f
|
||||
};
|
||||
|
||||
SquareMatrix<float, 3> A2(data2);
|
||||
SquareMatrix<float, 3> A2_I = inv(A2);
|
||||
|
||||
Reference in New Issue
Block a user