use full mag fusion

This commit is contained in:
Roman 2016-01-08 06:47:51 +01:00
parent f8354bb5e9
commit a41f75ffb1

View File

@ -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)) {