Airspeed check: updated message and explained test parameters

This commit is contained in:
Andreas Antener
2016-12-02 22:56:48 +01:00
committed by Lorenz Meier
parent f772fc2d02
commit b531e65f6a
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -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);