mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 16:43:34 +08:00
added static gps mode and init mag state correctly
This commit is contained in:
@@ -69,7 +69,7 @@ void EstimatorBase::setIMUData(uint64_t time_usec, uint64_t delta_ang_dt, uint64
|
||||
|
||||
_time_last_imu = time_usec;
|
||||
|
||||
if (_imu_time_last > 0) {
|
||||
if (_time_last_imu > 0) {
|
||||
_dt_imu_avg = 0.8f * _dt_imu_avg + 0.2f * dt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user