mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 04:57:34 +08:00
accelerometer_calibration: only notify system once (after last scale change)
This commit is contained in:
@@ -336,11 +336,7 @@ int do_accel_calibration(orb_advert_t *mavlink_log_pub)
|
||||
} else if (axis_index == 2) {
|
||||
val += accel_scale.z_offset;
|
||||
}
|
||||
if (axis_index == 2) { //notify the system about the change, but only once, for the last one
|
||||
failed |= (PX4_OK != param_set(handle, &val));
|
||||
} else {
|
||||
failed |= (PX4_OK != param_set_no_notification(handle, &val));
|
||||
}
|
||||
failed |= (PX4_OK != param_set_no_notification(handle, &val));
|
||||
}
|
||||
|
||||
/* update the _SCL_ terms to include the scale factor */
|
||||
|
||||
Reference in New Issue
Block a user