SITL: fixed airspeed in CRRCSim

This commit is contained in:
Andrew Tridgell 2015-05-23 11:35:56 +10:00
parent da5d5c9936
commit ae6ac1b82d
1 changed files with 1 additions and 2 deletions

View File

@ -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);