mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
Force update of offset, do not add offset in final value
This commit is contained in:
@@ -668,8 +668,8 @@ int prearm_check(const struct vehicle_status_s *status, const int mavlink_fd)
|
||||
|
||||
struct airspeed_s airspeed;
|
||||
|
||||
if (ret = orb_copy(ORB_ID(airspeed), fd, &airspeed) ||
|
||||
hrt_elapsed_time(&airspeed.timestamp) > 50 * 1000) {
|
||||
if ((ret = orb_copy(ORB_ID(airspeed), fd, &airspeed)) ||
|
||||
(hrt_elapsed_time(&airspeed.timestamp) > (50 * 1000))) {
|
||||
mavlink_log_critical(mavlink_fd, "ARM FAIL: AIRSPEED SENSOR MISSING");
|
||||
failed = true;
|
||||
goto system_eval;
|
||||
|
||||
Reference in New Issue
Block a user