simuv4 downforce cut at 30 deg

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5208 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 568f472594e75736bf85ae9802a46796d54bc882
Former-commit-id: 09486e24a4652126990693a3fdbc5d5269b6edc0
This commit is contained in:
wdbee 2013-02-25 23:19:48 +00:00
parent b05207d6f3
commit 33c03434ea

View file

@ -170,9 +170,9 @@ SimWingUpdate(tCar *car, int index, tSituation* s)
}
else // 30 deg -> 90 deg smoothly reduced downforce
{
sinaoa = sin(aoa)-sin((aoa-PI_6)*(aoa-PI_6));
sinaoa = 0.25 * (1 - ((aoa-PI_3)/PI_6)*((aoa-PI_3)/PI_6)*((aoa-PI_3)/PI_6));
}
wing->forces.z = (float) wing->Kz * vt2 * sinaoa;
wing->forces.z = (float) MAX(0.0,wing->Kz * vt2 * sinaoa);
}
}
else