bomber wrote:To determine the angle of attack on the h-stab we need to understand the two velocities uv and w
with these determines it's a simple case of Pythagoras tan Angle = O/A
Better yet use the atan2 function in xml as this doesn't give infinite results which would throw the AoA out.Code: Select all
<fcs_function name="T4T/aero/h-stab_left/AoA-deg">
<function>
<todegrees>
<atan2>
<property>T4T/velocities/h-stab_left/w-aero-fps</property>
<property>T4T/velocities/h-stab_left/uv-fps</property>
</atan2>
</todegrees>
</function>
</fcs_function>
If "h-stab_left/AoA-deg" represents the aerodynamic angle alpha then I think "h-stab_left/uv-fps" should be changed to "h-stab_left/u-fps".
bomber wrote:
using the angle of the airstream coming off the wing and the u-aero velocity to calculate the actual u-velocityCode: Select all
<fcs_function name="T4T/velocities/h-stab_left/u-aero-fps">
<function>
<product>
<cos><property>T4T/aero/h-stab_left/downwash-rad</property></cos>
<property>velocities/u-aero-fps</property>
</product>
</function>
</fcs_function>
using the w-areo velocity and the rotation speeds on the h-stab in both p & q to calculate the w-aero velocityCode: Select all
<fcs_function name="T4T/velocities/h-stab_left/w-aero-fps">
<function>
<sum>
<property>velocities/w-aero-fps</property>
<product>
<sin><property>T4T/aero/h-stab_left/downwash-rad</property></sin>
<property>velocities/u-aero-fps</property>
</product>
<property>T4T/velocities/h-stab/p_rotational-fps</property>
<property>T4T/velocities/h-stab/q_rotational-fps</property>
</sum>
</function>
</fcs_function>
Your downwash correction for u and w I don't understand. It seems your downwash model is not just a simple rotatation of the free airstream velocity vector by the downwash angle. Anyway, I would assume that after applying the downwash correction (ignoring any rotational rates) u and w should satisfy
Code: Select all
u/w = tan(alpha - downwash_angle)