mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 13:13:35 +08:00
Tilt Initialisation: Average Filter -> LowPass Filter (#686)
* Tilt Initialisation: Average Filter -> LowPass Filter * Add _is_first_imu_sample variable * Remove not needed comments
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
// Accumulate imu data and store to buffer at desired rate
|
||||
void EstimatorInterface::setIMUData(const imuSample &imu_sample)
|
||||
{
|
||||
// TODO: resolve misplaced responsibility
|
||||
if (!_initialised) {
|
||||
init(imu_sample.time_us);
|
||||
_initialised = true;
|
||||
|
||||
Reference in New Issue
Block a user