AP_HAL_SITL: stash pressure in sitl_fdm structure

It's not a great way of getting the data where needed - but it is
something.
This commit is contained in:
Peter Barker 2020-12-16 19:00:44 +11:00 committed by Peter Barker
parent e0aa3c78e5
commit a8b93881d3

View File

@ -66,6 +66,9 @@ void SITL_State::_update_airspeed(float airspeed)
float airspeed_raw = airspeed_pressure + _sitl->arspd_offset[0];
float airspeed2_raw = airspeed2_pressure + _sitl->arspd_offset[1];
_sitl->state.airspeed_raw_pressure[0] = airspeed_pressure;
_sitl->state.airspeed_raw_pressure[1] = airspeed2_pressure;
if (airspeed_raw / 4 > 0xFFFF) {
airspeed_pin_value = 0xFFFF;
return;