mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 04:53:34 +08:00
ms5525 use int64 for calculation
This commit is contained in:
@@ -216,8 +216,10 @@ int do_airspeed_calibration(orb_advert_t *mavlink_log_pub)
|
||||
calibration_counter++;
|
||||
|
||||
if (fabsf(diff_pres.differential_pressure_filtered_pa) < 50.0f) {
|
||||
|
||||
if (calibration_counter % 500 == 0) {
|
||||
calibration_log_info(mavlink_log_pub, "[cal] Create air pressure! (got %d, wanted: 50 Pa)", (int)diff_pres.differential_pressure_filtered_pa);
|
||||
tune_neutral(true);
|
||||
}
|
||||
} else if (diff_pres.differential_pressure_filtered_pa < 0.0f) {
|
||||
/* do not allow negative values */
|
||||
|
||||
Reference in New Issue
Block a user