mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 07:28:54 +08:00
Airspeed check: updated message and explained test parameters
This commit is contained in:
committed by
Lorenz Meier
parent
f772fc2d02
commit
b531e65f6a
@@ -402,7 +402,7 @@ static bool airspeedCheck(orb_advert_t *mavlink_log_pub, bool optional, bool rep
|
||||
|
||||
if (fabsf(airspeed.differential_pressure_filtered_pa) > 15.0f && !prearm) {
|
||||
if (report_fail) {
|
||||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: AIRSPEED CALIBRATION ISSUE");
|
||||
mavlink_log_critical(mavlink_log_pub, "PREFLIGHT FAIL: HIGH AIRSPEED, CHECK CALIBRATION");
|
||||
}
|
||||
success = false;
|
||||
goto out;
|
||||
|
||||
@@ -296,7 +296,10 @@ bool StateMachineHelperTest::armingStateTransitionTest(void)
|
||||
false /* no pre-arm checks */,
|
||||
nullptr /* no mavlink_log_pub */,
|
||||
&status_flags,
|
||||
5.0f, check_gps, 2e6);
|
||||
5.0f, /* avionics rail voltage */
|
||||
check_gps,
|
||||
2e6 /* 2 seconds after boot, everything should be checked */
|
||||
);
|
||||
|
||||
// Validate result of transition
|
||||
ut_compare(test->assertMsg, test->expected_transition_result, result);
|
||||
|
||||
Reference in New Issue
Block a user