Need help with Elevator XML
Posted: 05 Feb 2018, 15:42
Hi Folks
Can someone who knows more about xml than me (ie everyone) give me a hand?
I am converting the NBAI F-22 to P3D and need a bit of assistance with the tail surfaces.
Nick modeled the engine outlets that move along with the tail.
I would also like to model the tail droop when the aircraft is parked (like this)
This bit of code works great for the moving tail
<PartInfo>
<Name>elevator_key</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>ELEVATOR DEFLECTION</Variable>
<Units>grads</Units>
<Bias>50</Bias>
</Sim>
</Parameter>
</Animation>
</PartInfo>
and this bit of code works great to droop the tail when parked
<Name>custom_anim_F16_Elevator</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(A:GROUND VELOCITY,knots) 0 !=
(A:LIGHT BEACON,bool) or
if{ A:ELEVATOR DEFLECTION PCT, percent) -0.5 * 50 + }
els{ (A:ELEVATOR DEFLECTION PCT, percent)}
</Code>
<Lag>30</Lag>
</Parameter>
</Animation>
</PartInfo>
My problem is trying to combine them.
All help gratefully received.
thanks
Gavin
Can someone who knows more about xml than me (ie everyone) give me a hand?
I am converting the NBAI F-22 to P3D and need a bit of assistance with the tail surfaces.
Nick modeled the engine outlets that move along with the tail.
I would also like to model the tail droop when the aircraft is parked (like this)
This bit of code works great for the moving tail
<PartInfo>
<Name>elevator_key</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Sim>
<Variable>ELEVATOR DEFLECTION</Variable>
<Units>grads</Units>
<Bias>50</Bias>
</Sim>
</Parameter>
</Animation>
</PartInfo>
and this bit of code works great to droop the tail when parked
<Name>custom_anim_F16_Elevator</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(A:GROUND VELOCITY,knots) 0 !=
(A:LIGHT BEACON,bool) or
if{ A:ELEVATOR DEFLECTION PCT, percent) -0.5 * 50 + }
els{ (A:ELEVATOR DEFLECTION PCT, percent)}
</Code>
<Lag>30</Lag>
</Parameter>
</Animation>
</PartInfo>
My problem is trying to combine them.
All help gratefully received.
thanks
Gavin