Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_InertialSensor: Fix parameter name when saving persistent accel cals for Aux IMUs #26624

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Copy link
Contributor Author

@joshanne joshanne Mar 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already correctly account for the imu offset for the base first 3 IMUs just above:

We add the offset here for aux IMUs

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
Loading