From 119ffb0fc074fbf8a3f78b865b77d7ae00d82ecf Mon Sep 17 00:00:00 2001 From: Andrew Tridgell <tridge@samba.org> Date: Mon, 13 May 2013 15:42:38 +1000 Subject: [PATCH] SITL: fixed simulated airspeed value --- libraries/AP_HAL_AVR_SITL/sitl_ins.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_AVR_SITL/sitl_ins.cpp b/libraries/AP_HAL_AVR_SITL/sitl_ins.cpp index ddc16d5bb..3299c1986 100644 --- a/libraries/AP_HAL_AVR_SITL/sitl_ins.cpp +++ b/libraries/AP_HAL_AVR_SITL/sitl_ins.cpp @@ -31,12 +31,12 @@ using namespace AVR_SITL; uint16_t SITL_State::_airspeed_sensor(float airspeed) { const float airspeed_ratio = 1.9936; - const float airspeed_offset = 503; + const float airspeed_offset = 2013; float airspeed_pressure, airspeed_raw; airspeed_pressure = (airspeed*airspeed) / airspeed_ratio; airspeed_raw = airspeed_pressure + airspeed_offset; - return airspeed_raw; + return airspeed_raw/4; } -- GitLab