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.
The website and forum will be intermittently unavailable while we're making some security updates.
File uploads to the download hangar are also disabled until further notice.
File uploads to the download hangar are also disabled until further notice.
Drag Chute XML.
Re: Drag Chute XML.
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.
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.
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.
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>
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>
Henk.
Re: Drag Chute XML.
Hello Henk.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.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_Reverser</Name> <Visibility> <Parameter> <Code>(A:TURB ENG REVERSE NOZZLE PERCENT:1, percent) 0.10 ></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.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>
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>
Happy Flight~~~
Mins
Mins
Re: Drag Chute XML.
Mins, sorry - I forgot you are doing FS9, my code is for FSX/P3D, I do not know how FS9 coding works.
Henk.
Henk.
- John Young
- MAIW Developer
- Posts: 4206
- Joined: 12 Jul 2008, 15:15
Re: Drag Chute XML.
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
<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.
As expected, John. ^^bJohn 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
It works perfectly well.
I'm learning one more thing.
Thank you very much.
Happy Flight~~~
Mins
Mins