mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-14 05:50:36 +08:00
ekf: add vehicle at rest to flags
This commit is contained in:
committed by
Mathieu Bresciani
parent
89bcebd631
commit
b6420d0b79
@@ -66,7 +66,7 @@ void EstimatorInterface::setIMUData(const imuSample &imu_sample)
|
||||
|
||||
// Do not change order of computeVibrationMetric and checkIfVehicleAtRest
|
||||
computeVibrationMetric();
|
||||
_vehicle_at_rest = checkIfVehicleAtRest(dt);
|
||||
_control_status.flags.vehicle_at_rest = checkIfVehicleAtRest(dt);
|
||||
|
||||
const bool new_downsampled_imu_sample_ready = _imu_down_sampler.update(_newest_high_rate_imu_sample);
|
||||
_imu_updated = new_downsampled_imu_sample_ready;
|
||||
|
||||
Reference in New Issue
Block a user