mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 17:10:35 +08:00
EKF: allow initialising without mag depending on configuration
- reduce initial number of required mag and baro samples before init
This commit is contained in:
committed by
Paul Riseborough
parent
1237087d70
commit
398fe159ce
@@ -50,8 +50,7 @@ void EstimatorInterface::setIMUData(const imuSample &imu_sample)
|
||||
{
|
||||
// TODO: resolve misplaced responsibility
|
||||
if (!_initialised) {
|
||||
init(imu_sample.time_us);
|
||||
_initialised = true;
|
||||
_initialised = init(imu_sample.time_us);
|
||||
}
|
||||
|
||||
const float dt = math::constrain((imu_sample.time_us - _time_last_imu) / 1e6f, 1.0e-4f, 0.02f);
|
||||
|
||||
Reference in New Issue
Block a user