Skip to content

Commit

Permalink
AP_NavEKF2: rename ins get_primary_accel to get_first_usable_accel
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker authored and andyp1per committed Aug 23, 2024
1 parent 308ed96 commit b38b3c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_NavEKF2/AP_NavEKF2_Measurements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,13 +335,13 @@ void NavEKF2_core::readIMUData()
if (ins.use_accel(imu_index)) {
accel_active = imu_index;
} else {
accel_active = ins.get_primary_accel();
accel_active = ins.get_first_usable_accel();
}

if (ins.use_gyro(imu_index)) {
gyro_active = imu_index;
} else {
gyro_active = ins.get_primary_gyro();
gyro_active = ins.get_first_usable_gyro();
}

if (gyro_active != gyro_index_active) {
Expand Down

0 comments on commit b38b3c0

Please sign in to comment.