From ae6ac1b82d2547d84550309e6c6ad7d894bedbfc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 23 May 2015 11:35:56 +1000 Subject: [PATCH] SITL: fixed airspeed in CRRCSim --- libraries/SITL/SIM_CRRCSim.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/SITL/SIM_CRRCSim.cpp b/libraries/SITL/SIM_CRRCSim.cpp index bc20c54538..cfa792107f 100644 --- a/libraries/SITL/SIM_CRRCSim.cpp +++ b/libraries/SITL/SIM_CRRCSim.cpp @@ -129,8 +129,7 @@ void CRRCSim::recv_fdm(const struct sitl_input &input) position.y = posdelta.y; position.z = -pkt.altitude; - // assume zero wind for now - airspeed = velocity_ef.length(); + airspeed = pkt.airspeed; dcm.from_euler(pkt.roll, pkt.pitch, pkt.yaw);