#1 Spoiler in Paul Hannity's model von Carlos4x4 15.09.2007 04:35

Hello Matthias,

I read that you have problem with spoiler and airbrake in Jon's Model, so I install the Paul's model.

I have made some changes, that are better for my, but do not know if they are correct

1) Due to the complexity of the panel, this one taking a long time in loading itself.
So I uncab (unzip) the ML-BAe146v40.CAB to ML-BAe146v40 directory (deleting the cab file) and the panel load very quickly.

2) The spoiler (not the airbrake) take a long time to lift, so I change the in aircraft.cfg in [folding_wings] the line
fold_rates=0.075,0.075
to
fold_rates=1.0,1.0

3) When I have the airbrake extends on ground and I click in the lift spoiler area, some strange things happen.
In the file "Hydraulic_System_PH.xml" you have the code:

... if{ (A:FOLDING WING LEFT PERCENT, percent) 5 < if{ (>K:TOGGLE_WING_FOLD) } } els{ (A:FOLDING WING LEFT PERCENT, percent) 95 > if{ (>K:TOGGLE_WING_FOLD)

The guages is executed cyclical. If the gauge is executed after click in the "lift spoiler area" (in pedestal) but before the spoiler reaches 5% the "TOGGLE_WING_FOLD" is executed again. This explain the strange things.

I change .... 5 &lt; ... by .... 0 &lt;= ..... (percent <= 0)
and .... 95 &gt; .... by .... 100 &gt;= .... ( percent >= 100)

4) In order to facilitate the lift the spoiler I adds the following code in "Hydraulic_System_PH.xml":

< Keys >
< On Event="TOGGLE_WING_FOLD" >
(A:Spoilers handle position, position) 0.9 &gt; if{ (L:Lift Spoiler Out, bool) 0 == if{ 1 (&gt;L:Lift Spoiler Out, bool) 0 (&gt;L:Liftspoiler Warning,bool) 0 (&gt;L:Liftspoiler Warntime,bool) 0 (&gt;L:Liftspoiltimer,percent) } els{ 0 (&gt;L:Lift Spoiler Out, bool) } }
< /On >
< /Keys >

This allows to lift the spoiler when pressing to the key assigned to the folding wing event (the "F" key in my case).
Of course, you must be in the ground, with airbrake extended and the engine in idle position. The same conditions that must happen when you click the "lift spoiler area" (in pedestal).

I hope that this is one more an aid than a problem

Kindly,
Carlos
#2 Re: Spoiler in Paul Hannity's model von Matthias_L 15.09.2007 11:19

Hello Carlos,

The problems I had with programming the lift spoiler function of Jon's model are gone since a long time, so you could use his model too. The only thing is, that Jon's aircraft still has no visible lift spoilers. The function in my panel works and is programmed to match his hopefully upcoming version.

"1) Due to the complexity of the panel, this one taking a long time in loading itself.
So I uncab (unzip) the ML-BAe146v40.CAB to ML-BAe146v40 directory (deleting the cab file) and the panel load very quickly."

As long as you place all other files of the gauges.zip directly in the gauges directory, this works. Otherwise you will get problems.

"2) The spoiler (not the airbrake) take a long time to lift, so I change the in aircraft.cfg"

Very nice idea. I will check the new time.

"I change .... 5 &lt; ... by .... 0 &lt;= ..... (percent <= 0)
and .... 95 &gt; .... by .... 100 &gt;= .... ( percent >= 100)"

Quite a small activarion area for a toggle function of a moving element. Fine when it works.

"4) In order to facilitate the lift the spoiler I adds the following code in "Hydraulic_System_PH.xml":

This is very dangerous and I highly recommend to delete this entry. To explain this you must know that the On Event always triggers and not only once like like the On Key function. This means that On Event also works without a key press (it is triggered by the event itself and not only by a key). When you have the wingfold trigger now also controlled from a system element like it is done here, you get an infinite loop in the end, because the wingfold will be triggered by the system, the On Event recognize it and triggers it then also which will be realized from the system again which now triggers it again and so on and so on. This happens not always because the system gauge depends also on other functions. However it could happen and then you have to change the lift spoiler entries in the corresponding ini file and to restart FS once again. Not very nice.

When you would like to realize this in FS2004, please use the On Key function instead of the On Event function. Search for a key you didn't use.

One very important thing:

I see that a lot of your above changes have sense. Nevertheless such changings always leads me into massive problems. Two years ago a Flightsimmer posted a problem here in the forum which I absolutely could not reconstruct. We were in contact by mail for more then four weeks, always trying different things. He was able to demonstrate the problem so I always thought that there must be a massive bug somewhere in my codes. Just a short time before I want to say sorry, but I could not correct it, I've asked him to check a further thing. As this didn't work he told me that made a very small change in my code. A thing which doesn't seems for him to have anything to do with the problem, but it had. I was very happy that the problem was solved now but you could imagine my real feelings Because of this I don't want to give any support for panels which are modified. I hope you could understand this.

Best Regards
Matthias
#3 Re[2]: Spoiler in Paul Hannity's model von Carlos4x4 15.09.2007 17:56

Thanks Matthias for your time and commentaries, I appreciate much your dedication.

I must some explanations to you.

The problem with Jon's model is that you can extend the airbrake with key action but you can't retract with key action, You can retract with the lever in the pedestal. Lamentably for my, I am customary to use the keys but that mouse

About the point 4), I agree with you 100%, it is a dangerous code and I have already put in problems with other airplanes .

Your code is very beautiful and it is seen very well. If you pay attention, only there are 2 forms to extend the spoiler, one is with a click in the lift spoiler area in the pedestal and the other is pressing a key

If you do click, you don't lift the spoiler, you only set local variables, the spoiler is lift for hydraulic system.
If you press a key, the code set the same local variables and dispach the Folding event, when the hydraulic system detect the corret set the of local variables it tray to dispatch the Folding event but like the percent of lift it is > 0 the event is not dispach.

I excuses by short it for the explanation but my wife is throwing to me of the ear to go to eat

Kindly,
Carlos
Xobor Ein Kostenloses Forum | Einfach ein Forum erstellen
Datenschutz