Page 1 of 1
Drag Chute XML.
Posted: 08 Mar 2021, 14:04
by mins
Hello.
I'm curious about Drag Chute XML.
The code I know operates shortly after landing almost at the last stage.
Is there a code that works as soon as it lands?
Please answer and thank you.

Re: Drag Chute XML.
Posted: 08 Mar 2021, 14:16
by hschuit
Mins, I assume you need a visibility tag to show/hide the chute? Depending on when I want to chute to appear I use:
1. Chute appears when thrust reverser engages (requires thrust reverser enabled in aircraft.cfg). This happens quickly after touchdown.
Code: Select all
<PartInfo>
<Name>custom_vis_AI_Chute_Reverser</Name>
<Visibility>
<Parameter>
<Code>(A:TURB ENG REVERSE NOZZLE PERCENT:1, percent) 0.10 ></Code>
</Parameter>
</Visibility>
</PartInfo>
2. If you want it even quicker than with the reversers: Chute appears when aircraft is just above the ground (using feet above ground from main gear contact points). The chute disappears at the end of the roll out when the spoilers retract.
Code: Select all
<PartInfo>
<Name>custom_vis_AI_Chute_Alt_Above_Grnd</Name>
<Visibility>
<Parameter>
<Code>(A:SPOILERS LEFT POSITION,percent) 2 < if{ 0 } els{ (A:PLANE ALT ABOVE GROUND, feet) 7.5 > if{ 0 } els{ 1 } }</Code>
</Parameter>
</Visibility>
</PartInfo>
I also tried to trigger the chute by the main or nose wheels touching ground but the problem is when the aircraft bounces, the chute pops on and off which is not nice.
Henk.
Re: Drag Chute XML.
Posted: 09 Mar 2021, 02:10
by mins
hschuit wrote: 08 Mar 2021, 14:16
Mins, I assume you need a visibility tag to show/hide the chute? Depending on when I want to chute to appear I use:
1. Chute appears when thrust reverser engages (requires thrust reverser enabled in aircraft.cfg). This happens quickly after touchdown.
Code: Select all
<PartInfo>
<Name>custom_vis_AI_Chute_Reverser</Name>
<Visibility>
<Parameter>
<Code>(A:TURB ENG REVERSE NOZZLE PERCENT:1, percent) 0.10 ></Code>
</Parameter>
</Visibility>
</PartInfo>
2. If you want it even quicker than with the reversers: Chute appears when aircraft is just above the ground (using feet above ground from main gear contact points). The chute disappears at the end of the roll out when the spoilers retract.
Code: Select all
<PartInfo>
<Name>custom_vis_AI_Chute_Alt_Above_Grnd</Name>
<Visibility>
<Parameter>
<Code>(A:SPOILERS LEFT POSITION,percent) 2 < if{ 0 } els{ (A:PLANE ALT ABOVE GROUND, feet) 7.5 > if{ 0 } els{ 1 } }</Code>
</Parameter>
</Visibility>
</PartInfo>
I also tried to trigger the chute by the main or nose wheels touching ground but the problem is when the aircraft bounces, the chute pops on and off which is not nice.
Henk.
Hello Henk.
Thank you for your quick and kind reply.
By the way, is this code for FS9?
I think the content is a little different. FS9<visible_in_range> ---> </Visibility>, FS9</Part> ---> </PartInfo>..
And ultimately, Chute appear before departure...1 & 2 both codes.ㅠ ㅠ
This is the code I use.
My code appears normally.
Thank you.
<part>
<name>chute</name>
<visible_in_range>
<parameter>
<code>(A:TURB ENG1 REVERSE NOZZLE PERCENT,percent) (A:CENTER WHEEL RPM,grads) * </code>
</parameter>
<minvalue>100</minvalue>
</visible_in_range>
</part>
Re: Drag Chute XML.
Posted: 09 Mar 2021, 07:46
by hschuit
Mins, sorry - I forgot you are doing FS9, my code is for FSX/P3D, I do not know how FS9 coding works.
Henk.
Re: Drag Chute XML.
Posted: 09 Mar 2021, 08:50
by John Young
Mins, this is the FS9 code that I use for a drag chute:
<part>
<name>drag_chute</name>
<visible_in_range>
<parameter>
<code>
(A:CENTER WHEEL RPM, grads) 10 > (A:FLAPS HANDLE PERCENT, percent) 99 > 80 * *
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
The chute will not deploy until the nose wheel is on the ground, which is not a bad thing because a nose-up attitude tends to bury the chute until the aircraft levels on the runway.
I sometimes use radio altitude for spoilers or air brakes, eg for an F-15 air brake that deploys just before touchdown. It's triggered by radio height and it's set at 50ft in this case:
<part>
<name>anim_spoiler</name>
<animation>
<parameter>
<code>
(A:RADIO HEIGHT, feet) 50 < (A:FLAPS HANDLE PERCENT, percent) 99 > 100 * *
</code>
<lag>20</lag>
</parameter>
</animation>
</part>
It may not be sensitive enough closer to the ground for a brake chute, but try it by all means.
John
Re: Drag Chute XML.
Posted: 09 Mar 2021, 13:08
by mins
John Young wrote: 09 Mar 2021, 08:50
Mins, this is the FS9 code that I use for a drag chute:
<part>
<name>drag_chute</name>
<visible_in_range>
<parameter>
<code>
(A:CENTER WHEEL RPM, grads) 10 > (A:FLAPS HANDLE PERCENT, percent) 99 > 80 * *
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
The chute will not deploy until the nose wheel is on the ground, which is not a bad thing because a nose-up attitude tends to bury the chute until the aircraft levels on the runway.
I sometimes use radio altitude for spoilers or air brakes, eg for an F-15 air brake that deploys just before touchdown. It's triggered by radio height and it's set at 50ft in this case:
<part>
<name>anim_spoiler</name>
<animation>
<parameter>
<code>
(A:RADIO HEIGHT, feet) 50 < (A:FLAPS HANDLE PERCENT, percent) 99 > 100 * *
</code>
<lag>20</lag>
</parameter>
</animation>
</part>
It may not be sensitive enough closer to the ground for a brake chute, but try it by all means.
John
As expected, John. ^^b
It works perfectly well.
I'm learning one more thing.
Thank you very much.