mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-13 15:41:35 +08:00
accel and gyro calibration refactor and cleanup
- remove all remaining IOCTLs for accel and gyro and handle all calibration entirely in sensors module with parameters
- sensor_accel and sensor_gyro are now always raw sensor data
- calibration procedures no longer need to first clear existing values before starting
- temperature calibration (TC) remove all scale (SCL) parameters
- gyro and baro scale are completely unused
- regular accel calibration scale can be used (CAL_ACC*_xSCALE) instead of TC scale
This commit is contained in:
@@ -154,30 +154,6 @@ PARAM_DEFINE_FLOAT(TC_A0_X0_1, 0.0f);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A0_X0_2, 0.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer scale factor - X axis.
|
||||
*
|
||||
* @group Thermal Compensation
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A0_SCL_0, 1.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer scale factor - Y axis.
|
||||
*
|
||||
* @group Thermal Compensation
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A0_SCL_1, 1.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer scale factor - Z axis.
|
||||
*
|
||||
* @group Thermal Compensation
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A0_SCL_2, 1.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer calibration reference temperature.
|
||||
*
|
||||
@@ -308,30 +284,6 @@ PARAM_DEFINE_FLOAT(TC_A1_X0_1, 0.0f);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A1_X0_2, 0.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer scale factor - X axis.
|
||||
*
|
||||
* @group Thermal Compensation
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A1_SCL_0, 1.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer scale factor - Y axis.
|
||||
*
|
||||
* @group Thermal Compensation
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A1_SCL_1, 1.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer scale factor - Z axis.
|
||||
*
|
||||
* @group Thermal Compensation
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A1_SCL_2, 1.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer calibration reference temperature.
|
||||
*
|
||||
@@ -462,30 +414,6 @@ PARAM_DEFINE_FLOAT(TC_A2_X0_1, 0.0f);
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A2_X0_2, 0.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer scale factor - X axis.
|
||||
*
|
||||
* @group Thermal Compensation
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A2_SCL_0, 1.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer scale factor - Y axis.
|
||||
*
|
||||
* @group Thermal Compensation
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A2_SCL_1, 1.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer scale factor - Z axis.
|
||||
*
|
||||
* @group Thermal Compensation
|
||||
* @category system
|
||||
*/
|
||||
PARAM_DEFINE_FLOAT(TC_A2_SCL_2, 1.0f);
|
||||
|
||||
/**
|
||||
* Accelerometer calibration reference temperature.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user