Skip to content

Commit

Permalink
AP_InertialSensor: Fix parameter name when saving persistent accel ca…
Browse files Browse the repository at this point in the history
…ls for Aux IMUs

Without this change, you get:
* IMU_ACCOFFS_*
* IMU_ACC2OFFS_*
* IMU_ACC3OFFS_*
* IMU3_ACCOFFS_*

After this change, you get:
* IMU_ACCOFFS_*
* IMU_ACC2OFFS_*
* IMU_ACC3OFFS_*
* IMU4_ACCOFFS_*
  • Loading branch information
joshanne authored and peterbarker committed Apr 5, 2024
1 parent 1e2600c commit 9dbc61f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_InertialSensor/AP_InertialSensor_tempcal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ void AP_InertialSensor::get_persistent_params(ExpandingString &str) const
}
#if INS_AUX_INSTANCES
for (uint8_t i=0; i<INS_AUX_INSTANCES; i++) {
const uint8_t imu = i+(INS_MAX_INSTANCES-INS_AUX_INSTANCES);
const uint8_t imu = i+(INS_MAX_INSTANCES-INS_AUX_INSTANCES)+1;
const Vector3f &aoff = params[i]._accel_offset.get();
const Vector3f &ascl = params[i]._accel_scale.get();
str.printf("INS%u_ACC_ID=%u\n", imu, unsigned(params[i]._accel_id.get()));
Expand Down

0 comments on commit 9dbc61f

Please sign in to comment.