mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 01:33:33 +08:00
Do not abort if the sensor reset failed, only abort on no data
This commit is contained in:
@@ -95,10 +95,8 @@ int do_airspeed_calibration(int mavlink_fd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!paramreset_successful) {
|
if (!paramreset_successful) {
|
||||||
warn("FAILED to set scale / offsets for airspeed");
|
warn("FAILED to reset - assuming analog");
|
||||||
mavlink_log_critical(mavlink_fd, "dpress reset failed");
|
mavlink_log_critical(mavlink_fd, "assuming analog sensor");
|
||||||
mavlink_log_info(mavlink_fd, CAL_FAILED_MSG, sensor_name);
|
|
||||||
return ERROR;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
while (calibration_counter < calibration_count) {
|
while (calibration_counter < calibration_count) {
|
||||||
|
|||||||
Reference in New Issue
Block a user