Skip to content

Commit

Permalink
AP_InertialSensor: Fix persistent storing of IMU Z Scale
Browse files Browse the repository at this point in the history
Fixes INSn_ACCSCAL_Z not being stored in persistent storage when bootloader is flashed.
  • Loading branch information
joshanne committed Jul 17, 2024
1 parent 338e347 commit b654764
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/AP_InertialSensor/AP_InertialSensor_tempcal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ void AP_InertialSensor::get_persistent_params(ExpandingString &str) const
str.printf("INS%u_ACCOFFS_Z=%f\n", imu, aoff.z);
str.printf("INS%u_ACCSCAL_X=%f\n", imu, ascl.x);
str.printf("INS%u_ACCSCAL_Y=%f\n", imu, ascl.y);
str.printf("INS%u_ACCSCAL_Z=%f\n", imu, ascl.z);
str.printf("INS%u_ACC_CALTEMP=%.2f\n", imu, params[i].caltemp_accel.get());
}
#endif
Expand Down

0 comments on commit b654764

Please sign in to comment.