mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
commander: Increase timeout on airspeed sensor for the prearm_check
This commit is contained in:
@@ -699,7 +699,7 @@ int prearm_check(const struct vehicle_status_s *status, const int mavlink_fd)
|
|||||||
struct airspeed_s airspeed;
|
struct airspeed_s airspeed;
|
||||||
|
|
||||||
if ((ret = orb_copy(ORB_ID(airspeed), fd, &airspeed)) ||
|
if ((ret = orb_copy(ORB_ID(airspeed), fd, &airspeed)) ||
|
||||||
(hrt_elapsed_time(&airspeed.timestamp) > (50 * 1000))) {
|
(hrt_elapsed_time(&airspeed.timestamp) > (500 * 1000))) {
|
||||||
mavlink_log_critical(mavlink_fd, "ARM FAIL: AIRSPEED SENSOR MISSING");
|
mavlink_log_critical(mavlink_fd, "ARM FAIL: AIRSPEED SENSOR MISSING");
|
||||||
failed = true;
|
failed = true;
|
||||||
goto system_eval;
|
goto system_eval;
|
||||||
|
|||||||
Reference in New Issue
Block a user