aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-04-19 15:17:30 +0200
committerLorenz Meier <lm@inf.ethz.ch>2015-04-19 15:17:30 +0200
commitd95227b9928c705c07e38f729fca4551aea0bb53 (patch)
tree59f443e9fe5e03e61491326c1ecee590b63ad238
parent544c1f5e24b18ca3806920d947635163873303e7 (diff)
downloadpx4-firmware-tempcal.tar.gz
px4-firmware-tempcal.tar.bz2
px4-firmware-tempcal.zip
commander mag cal: Use right device ID fieldtempcal
-rw-r--r--src/modules/commander/mag_calibration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/commander/mag_calibration.cpp b/src/modules/commander/mag_calibration.cpp
index 07613e6dd..9c2c18a0e 100644
--- a/src/modules/commander/mag_calibration.cpp
+++ b/src/modules/commander/mag_calibration.cpp
@@ -433,7 +433,7 @@ int mag_calibrate_all(int mavlink_fd, int32_t (&device_ids)[max_mags])
/* since temperature calibration is not yet in place, load matlab estimations */
/* NOTE: hardcoded terms are only suitable for LSM303D (used in dataset) */
- if (device_id == 131594) {
+ if (device_ids[cur_mag] == 131594) {
mscale.cal_temp = 25.00f;
mscale.min_temp = 3.30f;
mscale.max_temp = 41.18f;