aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander/accelerometer_calibration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/commander/accelerometer_calibration.cpp')
-rw-r--r--src/modules/commander/accelerometer_calibration.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/modules/commander/accelerometer_calibration.cpp b/src/modules/commander/accelerometer_calibration.cpp
index 13ab966ab..d9e7e21fc 100644
--- a/src/modules/commander/accelerometer_calibration.cpp
+++ b/src/modules/commander/accelerometer_calibration.cpp
@@ -1,6 +1,6 @@
/****************************************************************************
*
- * Copyright (c) 2013 PX4 Development Team. All rights reserved.
+ * Copyright (c) 2013-2015 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -221,17 +221,17 @@ int do_accel_calibration(int mavlink_fd)
accel_scale.z_scale = accel_T_rotated(2, 2);
/* set parameters */
- if (param_set(param_find("SENS_ACC_XOFF"), &(accel_scale.x_offset))
- || param_set(param_find("SENS_ACC_YOFF"), &(accel_scale.y_offset))
- || param_set(param_find("SENS_ACC_ZOFF"), &(accel_scale.z_offset))
- || param_set(param_find("SENS_ACC_XSCALE"), &(accel_scale.x_scale))
- || param_set(param_find("SENS_ACC_YSCALE"), &(accel_scale.y_scale))
- || param_set(param_find("SENS_ACC_ZSCALE"), &(accel_scale.z_scale))) {
+ if (param_set(param_find("CAL_ACC0_XOFF"), &(accel_scale.x_offset))
+ || param_set(param_find("CAL_ACC0_YOFF"), &(accel_scale.y_offset))
+ || param_set(param_find("CAL_ACC0_ZOFF"), &(accel_scale.z_offset))
+ || param_set(param_find("CAL_ACC0_XSCALE"), &(accel_scale.x_scale))
+ || param_set(param_find("CAL_ACC0_YSCALE"), &(accel_scale.y_scale))
+ || param_set(param_find("CAL_ACC0_ZSCALE"), &(accel_scale.z_scale))) {
mavlink_log_critical(mavlink_fd, CAL_FAILED_SET_PARAMS_MSG);
res = ERROR;
}
- if (param_set(param_find("SENS_ACC_ID"), &(device_id))) {
+ if (param_set(param_find("CAL_ACC0_ID"), &(device_id))) {
res = ERROR;
}
}