mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 19:32:36 +08:00
airspeed calibration log critical when ports are swapped
This commit is contained in:
@@ -225,8 +225,8 @@ int do_airspeed_calibration(orb_advert_t *mavlink_log_pub)
|
|||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
/* do not allow negative values */
|
/* do not allow negative values */
|
||||||
calibration_log_info(mavlink_log_pub, "[cal] Negative pressure difference detected (%d Pa)", (int)diff_pres.differential_pressure_filtered_pa);
|
calibration_log_critical(mavlink_log_pub, "[cal] Negative pressure difference detected (%d Pa)", (int)diff_pres.differential_pressure_filtered_pa);
|
||||||
calibration_log_info(mavlink_log_pub, "[cal] Swap static and dynamic ports!");
|
calibration_log_critical(mavlink_log_pub, "[cal] Swap static and dynamic ports!");
|
||||||
|
|
||||||
/* the user setup is wrong, wipe the calibration to force a proper re-calibration */
|
/* the user setup is wrong, wipe the calibration to force a proper re-calibration */
|
||||||
diff_pres_offset = 0.0f;
|
diff_pres_offset = 0.0f;
|
||||||
|
|||||||
Reference in New Issue
Block a user