Skip to content

Commit

Permalink
AP_NavEKF3: 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 tridge committed Jun 26, 2024
1 parent 025888a commit 563c3e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_NavEKF3/AP_NavEKF3_Measurements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,13 @@ void NavEKF3_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 563c3e7

Please sign in to comment.