AP_Airspeed: populate airspeed_raw for sensors returning airspeed reading
Without this ARSP[x].Airspeed isn't populated
This commit is contained in:
parent
59445674e7
commit
de2802e322
@ -473,6 +473,7 @@ void AP_Airspeed::read(uint8_t i)
|
|||||||
// try and get a direct reading of airspeed
|
// try and get a direct reading of airspeed
|
||||||
if (sensor[i]->has_airspeed()) {
|
if (sensor[i]->has_airspeed()) {
|
||||||
state[i].healthy = sensor[i]->get_airspeed(state[i].airspeed);
|
state[i].healthy = sensor[i]->get_airspeed(state[i].airspeed);
|
||||||
|
state[i].raw_airspeed = state[i].airspeed; // for logging
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user