Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Ailerons & Elevator Droop

Featured Replies

I've merged the new Sky Spirit B767-300 with the level-D 767 panel. However, I'm having problems with the xml code to make the ailerons and elevator droop when the hydraulic switches are turned off.I've had some help with the code but I cannot seem to get it perfect. I either have the control surfaces droop straight away from loading the aircraft from the main menu, or not at all!!Here is the code: <Gauge Name="Posky System" Version="1.0">Size X="200" Y="200"/><!-- Cold and Dark, drooping ailerons, elevator and rudderflutter in wind --><Element><Select><Value><!--(A:CIRCUIT HYDRAULIC PRESSURE,psi) 2600-->if{(L:droop,enum) 1 - 0 max (>L:droop,enum)(L:droop,enum) 10 <if{ (A:ELEVATOR POSITION,percent) 3 / s0 1 (A:VELOCITY BODY Z,knot) 350 / - l0 * 2 * + 300 + }els{ (L:PkyElev,percent) 1 + 300 min } (>L:PkyElev,percent)(L:droop,enum) 10 <if{ (A:AILERON LEFT DEFLECTION PCT,percent) 300 + }els{ (A:AILERON LEFT DEFLECTION PCT,percent) (L:PkyAileronL,percent) 1 - 300 max + } (>L:PkyAileronL,percent)(L:droop,enum) 10 <if{ 300 (A:AILERON RIGHT DEFLECTION PCT,percent) - }els{ (A:AILERON RIGHT DEFLECTION PCT,percent) (L:PkyAileronR,percent) 1 - 300 max + } (>L:PkyAileronR,percent)(L:droop,enum) 10 <if{ (A:AILERON LEFT DEFLECTION PCT,percent) (A:AILERON LEFT DEFLECTION PCT,percent) (A:AIRSPEED TRUE,knot) 500 / * - 300 + 200 max 400 min }els{ (A:AILERON LEFT DEFLECTION PCT,percent) (L:PkyLSAileronL,percent) 1 - 300 max + } (>L:PkyLSAileronL,percent)(L:droop,enum) 10 <if{ (A:AILERON RIGHT DEFLECTION PCT,percent) (A:AILERON RIGHT DEFLECTION PCT,percent) (A:AIRSPEED TRUE,knot) 500 / * - -1 * 300 + 200 max 400 min }els{ (A:AILERON RIGHT DEFLECTION PCT,percent) (L:PkyLSAileronR,percent) 1 - 300 max + } (>L:PkyLSAileronR,percent)(L:droop,enum) 10 <if{(A:VELOCITY BODY Z,knot) 1 < (A:VELOCITY BODY Z,knot) 60 > |if{ (A:RUDDER PEDAL POSITION,percent) 3 / s0 1 (A:VELOCITY BODY Z,knot) 350 / - l0 * 2 * + 300 + }els{ 300 } (>L:PkyRUDDER,percent)}(L:droop,enum) 10 <if{<!-- Left Spoiler 1 ... Ground spoiler -->(A:SIM ON GROUND,bool) (A:SPOILERS HANDLE POSITION,percent) 1 > andif{ (A:SPOILERS LEFT POSITION,percent) (A:SPOILERS RIGHT POSITION,percent) max }els{ 0 }(>L:PkyL1Spoiler,percent)<!-- Left Spoiler 2 ... Ground spoiler -->(A:SIM ON GROUND,bool) (A:SPOILERS HANDLE POSITION,percent) 1 > andif{ (A:SPOILERS LEFT POSITION,percent) (A:SPOILERS RIGHT POSITION,percent) max }els{ 0 }(>L:PkyL2Spoiler,percent)<!-- Left Spoiler 3 ... Ground spoiler + small action-->(A:SIM ON GROUND,bool) (A:SPOILERS HANDLE POSITION,percent) 1 > andif{ (A:SPOILERS LEFT POSITION,percent) (A:SPOILERS RIGHT POSITION,percent) max }els{ (A:SPOILERS LEFT POSITION,percent) 5 min }(>L:PkyL3Spoiler,percent)<!-- Left Spoiler 4 ... Flight Spoiler Max angle is 75%-->(A:SPOILERS LEFT POSITION,percent) 10 - 75 min (>L:PkyL4Spoiler,percent)<!-- Left Spoiler 5 ... Flight Spoiler -->(A:SPOILERS LEFT POSITION,percent) (>L:PkyL5Spoiler,percent)<!-- Left Spoiler 6 ... Flight Spoiler Plus Ground spoiler delay -->(A:SIM ON GROUND, bool) (A:SPOILERS HANDLE POSITION,percent) 1 > andif{ (A:SPOILERS LEFT POSITION,percent) (A:SPOILERS RIGHT POSITION,percent) max 50 - 2 * 100 min }els{ (A:SPOILERS LEFT POSITION,percent) } (>L:PkyL6Spoiler,percent)<!-- Left Spoiler 7 ... Flight Spoiler -->(A:SPOILERS LEFT POSITION,percent) (>L:PkyL7Spoiler,percent)<!-- RIGHT Spoiler 1 ... Ground spoiler -->(A:SIM ON GROUND,bool) (A:SPOILERS HANDLE POSITION,percent) 1 > andif{(A:SPOILERS LEFT POSITION,percent) (A:SPOILERS RIGHT POSITION,percent) max }els{ 0 }(>L:PkyR1Spoiler,percent)<!-- RIGHT Spoiler 2 ... Ground spoiler -->(A:SIM ON GROUND, bool) (A:SPOILERS HANDLE POSITION,percent) 1 > andif{ (A:SPOILERS LEFT POSITION,percent) (A:SPOILERS RIGHT POSITION,percent) max }els{ 0 }(>L:PkyR2Spoiler,percent)<!-- RIGHT Spoiler 3 ... Ground spoiler + small action-->(A:SIM ON GROUND,bool) (A:SPOILERS HANDLE POSITION,percent) 1 > andif{ (A:SPOILERS LEFT POSITION,percent) (A:SPOILERS RIGHT POSITION,percent) max }els{ (A:SPOILERS RIGHT POSITION,percent) 5 min }(>L:PkyR3Spoiler,percent)<!-- Right Spoiler 4 ... Flight Spoiler Max angle is 75%-->(A:SPOILERS RIGHT POSITION,percent) 10 - 75 min (>L:PkyR4Spoiler,percent)<!-- Right Spoiler 5 ... Flight Spoiler -->(A:SPOILERS RIGHT POSITION,percent) (>L:PkyR5Spoiler,percent)<!-- Right Spoiler 6 ... Flight Spoiler Plus Ground spoiler delay -->(A:SIM ON GROUND, bool) (A:SPOILERS HANDLE POSITION,percent) 1 > andif{ (A:SPOILERS LEFT POSITION,percent) (A:SPOILERS RIGHT POSITION,percent) max 50 - 2 * 100 min }els{ (A:SPOILERS RIGHT POSITION,percent) }(>L:PkyR6Spoiler,percent)<!-- Right Spoiler 7 ... Flight Spoiler -->(A:SPOILERS RIGHT POSITION,percent) (>L:PkyR7Spoiler,percent)}}els{(L:droop,enum) 1 + 100 min (>L:droop,enum)(L:droop,enum) 90 >if{(L:PkyElev,percent) 0.5 - 200 max (>L:PkyElev,percent)(L:PkyAileronL,percent) 1 + 400 min (>L:PkyAileronL,percent)(L:PkyAileronR,percent) 1 + 400 min (>L:PkyAileronR,percent)0 (>L:PkyL1Spoiler,percent)0 (>L:PkyL2Spoiler,percent)0 (>L:PkyL3Spoiler,percent)0 (>L:PkyL4Spoiler,percent)0 (>L:PkyL5Spoiler,percent)0 (>L:PkyL6Spoiler,percent)0 (>L:PkyL7Spoiler,percent)0 (>L:PkyR1Spoiler,percent)0 (>L:PkyR2Spoiler,percent)0 (>L:PkyR3Spoiler,percent)0 (>L:PkyR4Spoiler,percent)0 (>L:PkyR5Spoiler,percent)0 (>L:PkyR6Spoiler,percent)0 (>L:PkyR7Spoiler,percent)(A:RELATIVE WIND VELOCITY BODY Y,knot) 10 * 300 + (>L:PkyRUDDER,percent)<!--0 (>L:PkyRUDDER,percent) -->}}</Value></Select></Element><Element><Select><Value>(A:TOTAL WEIGHT,kilogram) (A:EMPTY WEIGHT,kilogram) - (A:MAX GROSS WEIGHT,kilogram) (A:EMPTY WEIGHT,kilogram) - / (>L:PkyWEIGHTPERCENT,enum)<!-- Ground Effect -->1 (A:PLANE ALT ABOVE GROUND, meter) 70 / - 2 * 0 max 2 min 10 + 10 /(>L:PkyGROUNDEFFECT,enum)<!-- Elevator Trim -->(A:ELEVATOR TRIM PCT,percent) 300 + (>L:PkyETRIM,percent)<!-- GSU DISPLAY YES/NO -->(L:STARTUP2,ENUM) 0 ==if{(L:PkyGSUAPP,bool) ! if{ 0 (>L:PkyGSUAPP,bool) }(L:PkyGSUBAPP,bool) ! if{ 0 (>L:PkyGSUBAPP,bool) }1 (>L:STARTUP2,ENUM)}<!-- Ground Wind Effect -->(A:PLANE ALT ABOVE GROUND, meter) 60 / 0 max 1 min(>L:PkyGROUNDWIND,enum)<!-- Oil Pressure Percent for droop ????? Where is the APU-->100 (A:Eng1 oil pressure,PSI) (A:Eng2 oil pressure,PSI) max 100 min (>L:PkyOilPressure,enum)</Value></Select></Element></Gauge> Can someone please help me with the code so I can get the ailerons and the elevator to droop after turning the hydraulic switches off?I'm by no means an xml guru, so any help would be much appreciated.Stu

Hi,Can you read the hyd pressure in the Level-D?If so, does it drop when cold and dark? And then, using <!--(A:CIRCUIT HYDRAULIC PRESSURE,psi) 2600--> will do nothing, you have "outcommented" the parameter with <!-- -->It should be:(A:CIRCUIT HYDRAULIC PRESSURE,psi) 2600 < Is the xml gauge ok?; is it in the panel.cfg?You can control that by adding this in the code:<Element><Position X="10" Y="10"/><Text X="100" Y="24" Length="8" BackgroundColor="#111111" Font="Arial" Color="dkgray" Adjust="Center" VerticalAdjust="Center" ><String>%(A:CIRCUIT HYDRAULIC PRESSURE,psi))%!d!</String></Text></Element><!-- Cold and Dark, drooping ailerons, elevator and rudderflutter in wind --><Element><Select><Value>(A:CIRCUIT HYDRAULIC PRESSURE,psi) 2600 < if{ etc.Works for me as debug.If you see nothing, then the gauge doesn't work or isn't installed properly.Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Commercial Member

This is all good and well but I don't believe that LDS uses the curcuit hydraulic system provided by fs I'm fairly certain that it uses it's own. And in such a case what is required is that you know the variable used for the LDS hydraulic systems, now those gauges are written in C not XML so this becomes further complicated. I've created the effect you're looking for but with my own custom built Hyrdraulic System and MUCH less code:

		<!--====================HYDRAULIC-CONTROL-LOGIC====================--> (L:HYD-PWR,bool) 0 == if{ 0 (>K:AXIS_ELEVATOR_SET) 0 (>K:RUDDER_SET) 0 (>K:AXIS_AILERONS_SET) 1 (>K:AUTOPILOT_OFF) 0 (>K:YAW_DAMPER_SET) 0 (>K:SPOILERS_SET) 0 (>K:AXIS_ELEV_TRIM_SET) } 

This was wrapped in Update tags, the variable HYD-PWR is defined by the 4 Hydraulic Systems on this particular aircraft.I would think that the LDS Aircraft already has a similar piece of code that accomplishes this but from my understand the knew POSKY/SkySpirit XML Files would overrule that code. I do know I have the older POSKY 762 linked with the LDS Panel and it's surfaces are indeed controlled by the panel/hydraulics.

Good Day,

Engjell Berisha

 

Angel-Simulations-Small.png

Hi,The new Skyspirit 767 has editable xml animations.You can control almost everything with L:Var's. Only important for the "eye candy"; has nothing to do with some panel or flight behaviour.You can fly the plane with doors and hedges open, pass. stairs. towtruck, with luggage elevators, food supply etc. With an xml gauge (debug) you can read the A:Var's the Level-D uses.If an important one like Hyd press, or Elec power drops to 0 when cold and dark, you can use that value in the Skyspirit animations to activate the wanted effects if you want to.And for sure, you need all that code!Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Thanks Jan,I'm away for a week now, but when I get back next Sunday I'll let you know if everything works ok.Stu

The LDS also has an SDK in the FS9 root/Level-D Simulations/B767-300/XML parameters for aircraft animations.txt . It has listings to tell you if Elevators/Spoilers/Elevators are powered up or not, no need to rely on hyd. pressure. It's sounds like that's taken care of internally.Roman

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Hi,Don't know anything about the Level-D.Doesn't the Skyspirit2010 model react only on its own xml-coded animations?It seems so, cause i can change the animations (ailerons, flaps, elevators, towtruck etc.) by editing the xml code.Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Jan, Yes indeed, I have no idea about the "Sky spirit" but have some some ex on the LDS .. With the 2 it should, or could, be possible to take the output of the great LDS and put into action something on the "Sky".The LDS sdk looks like it could be done. XML ---> XML... One question though....................... WHY?Roman

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Roman,Reason busy with it is because the 767 is the only plane i use and it was always a Posky one.In here my panel.....You know, only and always freeware.The 767v4 had some nice animations, rat, apu door etc, but not editable.Since a few weeks there is the 767v5 from Skyspirit, guys from the former Posky group, and after testing i was disappointed, because of lacking features: no rat, apu door linked at the gear and some more stuff.But now it is possible to edit all animations, because the modeler was so kind to give the xml code, necessary to drive them.So i can use the custom L:Var's from my panel!I had questions and showed some results on the facebook page of the modeler.A few people became also interested and start questioning and now the "virus" spreads to here at avsim.Happy New Year!Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

  • Moderator

Yeah, but can you animate the new version to sing and dance? :( Happy New Year guys! :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Hi,Of course there is an Infligt Passenger Entertainment System thanks to Doug.Strange, that almost all people on board tune "Pian, pianin le andro piu presso".....Same wishes to you frather Bill!Jan

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.