Skip to content

Commit

Permalink
AP_NavEKF3: use set_and_defualt when changing imu mask
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Mar 24, 2024
1 parent 2ef7a1e commit 6e1934a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_NavEKF3/AP_NavEKF3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ bool NavEKF3::InitialiseFilter(void)

// don't run multiple filters for 1 IMU
uint8_t mask = (1U<<ins.get_accel_count())-1;
_imuMask.set(_imuMask.get() & mask);
_imuMask.set_and_default(_imuMask.get() & mask);

// initialise the setup variables
for (uint8_t i=0; i<MAX_EKF_CORES; i++) {
Expand Down

0 comments on commit 6e1934a

Please sign in to comment.