mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 09:51:35 +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) {
|
switch (status) {
|
||||||
case 0:
|
case 0:
|
||||||
|
// Normal Operation. Good Data Packet
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
|
// Reserved
|
||||||
|
return -EAGAIN;
|
||||||
|
|
||||||
/* fallthrough */
|
|
||||||
case 2:
|
case 2:
|
||||||
|
// Stale Data. Data has been fetched since last measurement cycle.
|
||||||
|
return -EAGAIN;
|
||||||
|
|
||||||
/* fallthrough */
|
|
||||||
case 3:
|
case 3:
|
||||||
|
// Fault Detected
|
||||||
perf_count(_comms_errors);
|
perf_count(_comms_errors);
|
||||||
perf_end(_sample_perf);
|
perf_end(_sample_perf);
|
||||||
return -EAGAIN;
|
return -EAGAIN;
|
||||||
|
|||||||
Reference in New Issue
Block a user