mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-26 16:50:34 +08:00
use simple heading fusion
This commit is contained in:
+3
-3
@@ -85,9 +85,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)) {
|
||||
|
||||
@@ -311,7 +311,7 @@ void EstimatorBase::initialiseVariables(uint64_t time_usec)
|
||||
_gps_speed_valid = false;
|
||||
|
||||
_mag_healthy = false;
|
||||
_in_air = true; // XXX get this flag from the application
|
||||
_in_air = false; // XXX get this flag from the application
|
||||
|
||||
_time_last_imu = 0;
|
||||
_time_last_gps = 0;
|
||||
|
||||
Reference in New Issue
Block a user