mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 10:50:19 +08:00
meas_airspeed status aspd_com_err
This commit is contained in:
committed by
Lorenz Meier
parent
d3f71454cc
commit
384e3bb693
@@ -186,15 +186,19 @@ MEASAirspeed::collect()
|
||||
|
||||
switch (status) {
|
||||
case 0:
|
||||
// Normal Operation. Good Data Packet
|
||||
break;
|
||||
|
||||
case 1:
|
||||
// Reserved
|
||||
return -EAGAIN;
|
||||
|
||||
/* fallthrough */
|
||||
case 2:
|
||||
// Stale Data. Data has been fetched since last measurement cycle.
|
||||
return -EAGAIN;
|
||||
|
||||
/* fallthrough */
|
||||
case 3:
|
||||
// Fault Detected
|
||||
perf_count(_comms_errors);
|
||||
perf_end(_sample_perf);
|
||||
return -EAGAIN;
|
||||
|
||||
Reference in New Issue
Block a user