mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
use full mag fusion
This commit is contained in:
parent
f8354bb5e9
commit
a41f75ffb1
@ -89,9 +89,9 @@ bool Ekf::update()
|
||||
// measurement updates
|
||||
|
||||
if (_mag_buffer.pop_first_older_than(_imu_sample_delayed.time_us, &_mag_sample_delayed)) {
|
||||
fuseHeading();
|
||||
//fuseMag(_mag_fuse_index);
|
||||
//_mag_fuse_index = (_mag_fuse_index + 1) % 3;
|
||||
//fuseHeading();
|
||||
fuseMag(_mag_fuse_index);
|
||||
_mag_fuse_index = (_mag_fuse_index + 1) % 3;
|
||||
}
|
||||
|
||||
if (_baro_buffer.pop_first_older_than(_imu_sample_delayed.time_us, &_baro_sample_delayed)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user