mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 00:31:36 +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:
@@ -308,9 +308,6 @@ ADIS16448::print_status()
|
||||
perf_print_counter(_perf_bad_transfer);
|
||||
perf_print_counter(_perf_crc_bad);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_baro.print_status();
|
||||
_px4_gyro.print_status();
|
||||
_px4_mag.print_status();
|
||||
}
|
||||
|
||||
|
||||
@@ -385,6 +385,4 @@ ADIS16477::print_status()
|
||||
perf_print_counter(_sample_perf);
|
||||
perf_print_counter(_bad_transfers);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
@@ -505,6 +505,4 @@ ADIS16497::print_status()
|
||||
perf_print_counter(_sample_perf);
|
||||
perf_print_counter(_bad_transfers);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
@@ -431,7 +431,6 @@ void BMA180::print_status()
|
||||
{
|
||||
I2CSPIDriverBase::print_status();
|
||||
perf_print_counter(_sample_perf);
|
||||
_px4_accel.print_status();
|
||||
}
|
||||
|
||||
void BMA180::print_usage()
|
||||
|
||||
@@ -599,6 +599,4 @@ void BMI160::print_status()
|
||||
perf_print_counter(_good_transfers);
|
||||
perf_print_counter(_reset_retries);
|
||||
perf_print_counter(_duplicates);
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
@@ -82,8 +82,6 @@ void BMI055_Accelerometer::print_status()
|
||||
perf_print_counter(_fifo_overflow_perf);
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
}
|
||||
|
||||
int BMI055_Accelerometer::probe()
|
||||
|
||||
@@ -82,8 +82,6 @@ void BMI055_Gyroscope::print_status()
|
||||
perf_print_counter(_fifo_overflow_perf);
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
int BMI055_Gyroscope::probe()
|
||||
|
||||
@@ -82,8 +82,6 @@ void BMI088_Accelerometer::print_status()
|
||||
perf_print_counter(_fifo_overflow_perf);
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
}
|
||||
|
||||
int BMI088_Accelerometer::probe()
|
||||
|
||||
@@ -82,8 +82,6 @@ void BMI088_Gyroscope::print_status()
|
||||
perf_print_counter(_fifo_overflow_perf);
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
int BMI088_Gyroscope::probe()
|
||||
|
||||
@@ -418,7 +418,6 @@ void FXAS21002C::print_status()
|
||||
}
|
||||
}
|
||||
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -828,7 +828,5 @@ ICM20948::print_status()
|
||||
perf_print_counter(_good_transfers);
|
||||
perf_print_counter(_duplicates);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
_mag.print_status();
|
||||
}
|
||||
|
||||
@@ -102,8 +102,6 @@ void ICM20602::print_status()
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
int ICM20602::probe()
|
||||
|
||||
@@ -107,8 +107,6 @@ void ICM20608G::print_status()
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
int ICM20608G::probe()
|
||||
|
||||
@@ -102,8 +102,6 @@ void ICM20649::print_status()
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
int ICM20649::probe()
|
||||
|
||||
@@ -106,9 +106,6 @@ void ICM20689::print_status()
|
||||
perf_print_counter(_fifo_overflow_perf);
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
int ICM20689::probe()
|
||||
|
||||
@@ -124,8 +124,6 @@ void ICM20948::print_status()
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
|
||||
if (_slave_ak09916_magnetometer) {
|
||||
_slave_ak09916_magnetometer->PrintInfo();
|
||||
|
||||
@@ -101,9 +101,6 @@ void ICM40609D::print_status()
|
||||
perf_print_counter(_fifo_overflow_perf);
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
int ICM40609D::probe()
|
||||
|
||||
@@ -102,8 +102,6 @@ void ICM42688P::print_status()
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
int ICM42688P::probe()
|
||||
|
||||
@@ -107,8 +107,6 @@ void MPU6000::print_status()
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
int MPU6000::probe()
|
||||
|
||||
@@ -102,8 +102,6 @@ void MPU6500::print_status()
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
int MPU6500::probe()
|
||||
|
||||
@@ -125,8 +125,6 @@ void MPU9250::print_status()
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
|
||||
if (_slave_ak8963_magnetometer) {
|
||||
_slave_ak8963_magnetometer->PrintInfo();
|
||||
|
||||
@@ -414,7 +414,6 @@ L3GD20::print_status()
|
||||
}
|
||||
}
|
||||
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -883,8 +883,6 @@ MPU6000::print_status()
|
||||
perf_print_counter(_reset_retries);
|
||||
perf_print_counter(_duplicates);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -670,7 +670,5 @@ MPU9250::print_status()
|
||||
perf_print_counter(_bad_registers);
|
||||
perf_print_counter(_duplicates);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
_mag.print_status();
|
||||
}
|
||||
|
||||
@@ -339,6 +339,4 @@ void ISM330DLC::print_status()
|
||||
perf_print_counter(_drdy_count_perf);
|
||||
perf_print_counter(_drdy_interval_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
@@ -309,6 +309,4 @@ void LSM9DS1::print_status()
|
||||
perf_print_counter(_fifo_overflow_perf);
|
||||
perf_print_counter(_fifo_reset_perf);
|
||||
|
||||
_px4_accel.print_status();
|
||||
_px4_gyro.print_status();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user