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.

Slammer

Members
  • Joined

  • Last visited

Everything posted by Slammer

  1. Gentz, Solved the problem using two seperate macro's, thanks anyway. Gr. Slammer
  2. Gentz, I'm having a problem with my landing gear lights. I want them on the ground to go on/off with the switch and when turned on, i want them in the air to go on/off when landing gear is in/out. I have the following snippet which only works on the ground. Tried with SIM ON GROUND syntax but could not get it to work. please help! <Element> <Select> <Value> (A:LIGHT TAXI,bool) (A:GEAR CENTER POSITION,percent) 99 < && if{ (> K:TOGGLE_TAXI_LIGHTS) } els{ } </Value> </Select> </Element> <!-- PANEL LIGHT SWITCH (!) - FORCED OFF --> <Element> <Select> <Value>(A:LIGHT PANEL ON,bool) ! if{ (> K:PANEL_LIGHTS_OFF) }</Value> </Select> </Element> </Gauge
  3. All who have replied, Thank you very much helping me out, it works fine only not all ILS frequencies are recognized. For instance 108.55 SBO (ILS27 Soesterberg, the Netherlands) works fine but 110.75 VLO (ILS24 Volkel, the Netherlands) is not recognized. Maybe this is due to the Scenery (NL2000). Thanks again, a happy Slammer
  4. Mgh & Bob, Both thanks for your replies! I'm having trouble to implement Mgh's statement. I'm probably doing the wrong things at the wrong places. The way i implemented it, it returns 000 on the DME. Here are two codes. The first code gives DME to the NearestVorCurrentDistance which works but as i said before, it switches DME readings of nearby facilities. The second code is mgh his code but returns 000 on the DME. //----- <Element> <!--Visible>(A:NAV1 HAS DME, bool) (L:Steering Control, enum) 0 == &&</Visible--> <Visible>(A:NAV1 HAS DME, bool) (L:AVCS-UFC,bool) 1 == & (L:HSI-MODE,enum) 3 == (L:ILS Switch, bool) 0 == &&</Visible> <Position X="13" Y="6"/> <Text Bright="Yes" X="62" Y="20" Length="8" Font="arialbold" Color="#010101" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%((A:NAV HAS LOCALIZER) (A:HSI DISTANCE, nmiles))%{if}%((C:fs9gps:NearestVorCurrentDistance, nmiles))%!05.1f!%{else}%((A:NAV1 DME, nmiles))%!05.1f!%</String> </Text> </Element> Second code: <Element> <Visible>(A:NAV1 HAS DME, bool) (L:AVCS-UFC,bool) 1 == & (L:HSI-MODE,enum) 3 == (L:ILS Switch, bool) 0 == &&</Visible> <Position X="100" Y="150"/> <Text X="62" Y="18" Bright="Yes" Length="7" Font="arial" Color="#ffffff" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%((A:NAV HAS LOCALIZER:1, Bool) (A:NAV HAS DME:1, Bool) and if{ (A:NAV DME:1, nmiles) (> L:MyDMEDistance, Number) } (L:MyDMEDistance, Number))%!03d!</String> </Text> </Element> Question is: is this the correct place to put mgh's code or should it be in a value, macro, string or other statement. Sorry for not quit understanding what you ment. Slammer
  5. Maybe its possible with the database from Bob McElrath because lat/lon of the ILS should be somewhere in here. Then do a calculation via GeoCalc, but how?
  6. Fr.Bill I've done a arbitrary solution as well to show in the HUD and HSI when LOC/GS is off, alive and steady as a function of time with the following code. Maybe it helps. //----HUD ILS LOC DISPLAY <Element> <Position X="-239" Y="-27"/> <Clip Top="50" Left="-239" Right="691" Bottom="588"/> <Visible>(A:HSI has localizer, bool) (L:ILS Switch, bool) 0 == &&</Visible> <Select> <Value>(A:HSI has localizer, bool) (A:HSI CDI needle valid, bool) (L:AVCS-INS, enum) 2 == and and if{ (G:Var2) 0 == if{ (P:Absolute time,seconds) 15 + (>G:Var2) } } els{ 0 (>G:Var2) } (G:Var2) (P:Absolute time,seconds) ></Value> <Case Value="0"> <Image Name="Localizer_Needle_white-Valid.bmp" Bright="Yes"/> </Case> <Case Value="1"> <Image Name="Localizer_Needle_white.bmp" Bright="Yes"/> </Case> </Select> <Shift> <Value Minimum="-1" Maximum="1">(A:HSI CDI needle, number) 127 /</Value> <Nonlinearity> <Item Value="-1" X="-322" Y="-27"/> <Item Value="0" X="-281" Y="-27"/> <Item Value="1" X="-239" Y="-27"/> </Nonlinearity> </Shift> </Element> //----HUD ILS GS DISPLAY <Element> <Position X="-325" Y="59"/> <Clip Top="50" Left="20" Right="691" Bottom="588"/> <Visible>(A:HSI GSI needle valid, bool) (L:ILS Switch, bool) 0 == &&</Visible> <Select> <Value>(A:HSI has localizer, bool) (A:HSI GSI needle valid, bool) (L:AVCS-INS, enum) 2 == and and if{ (G:Var1) 0 == if{ (P:Absolute time,seconds) 15 + (>G:Var1) } } els{ 0 (>G:Var1) } (G:Var1) (P:Absolute time,seconds) ></Value> <Case Value="0"> <Image Name="Glideslope_Needle_white-Valid.bmp" Bright="Yes"/> </Case> <Case Value="1"> <Image Name="Glideslope_Needle_white.bmp" Bright="Yes"/> </Case> </Select> <Shift> <Value Minimum="-1" Maximum="1">(A:HSI GSI needle, number) 120 /</Value> <Nonlinearity> <Item Value="-1" X="-325" Y="-23"/> <Item Value="0" X="-325" Y="18"/> <Item Value="1" X="-325" Y="59"/> </Nonlinearity> </Shift> </Element> </Element> </Element> Slammer
  7. mgh, Thanks for your quick reply, but how should i do this. Don't know how to get the result out of the database. Slammer
  8. Hello all, I want to show DME to active ILS/LOC freq. I've read a few posts concerning this subject, but all are in C++. Does anybody have the solution in XML. I've tried with NearestVorCurrentDistance which works but the problem is that there are to many airfields in the direct vicinity so DME goes bazerk. Thanks in advance for helping me out. Slammer
  9. Jan, I've found the right statement for this problem. It should be (A:GPS WP DESIRED TRACK, degrees) as the following code shows. <!-- HSI ILS/NAV MODE --> <Element> <Visible>(L:AVCS-UFC,bool) 1 == (L:HSI-MODE,enum) 3 == & (L:ILS Switch, bool) 0 == &&</Visible> <Position X="173" Y="6"/> <Text X="62" Y="20" Bright="Yes" Length="3" Font="arial" Color="#ffffff" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%((A:NAV1 OBS,degrees))%!03d!</String> </Text> </Element> <Element> <Visible>(L:AVCS-UFC,bool) 1 == (L:HSI-MODE,enum) 3 == & (L:ILS Switch, bool) 1 == &&</Visible> <Position X="173" Y="6"/> <Text X="62" Y="20" Bright="Yes" Length="3" Font="arial" Color="#ffffff" Adjust="Left" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%((A:GPS WP DESIRED TRACK, degrees))%!03d!</String> </Text> </Element> Slammer
  10. Bob, Superb! This opens a whole new range of possiblilities. Gona do some digging for transferring those lat/lon to the addwaypoint for military use. Suppose Karol will be pleased as well for his Targeting Pod. Thanx! Slammer
  11. Jan, Thanks for your reply but this switch only switches on the AP an NAV Hold whereis the NAV/GPS button blinks momentarily from NAV to GPS and settles at NAV again. In the HSI gauge i mentioned above when in GPS/AUTO only sends course from flightplan to AP but does not activate AP. The secondary HSI follows the primary HSI. Hope you have an other option? Slammer
  12. Gents, I've worked around this problem. For starters you don't need a loaded .pln file. You can rightaway start entering Lat/Lon coordinates and it will make your .pln file instantly. You can also put a extra steerpoint anyware in the .pln file where you want. The only problem is that these changes are not saved and only of use in flight. I use this feature (and will be most used by military aviation) to get Lat/Lon coordinates of a target from an ATC controller or deployed Forward Air Controller in exercises we perform on the IVAO network. Afterwords i enter the coordinates at a certain point in the flightplan and navigation system shows heading, time to target or if i wish i change the time of arrival to my own suites and then the navigation system tells me what speed to fly to meet the new time of arrival (TOT, Time over Target. Greetings Slammer
  13. Hello all, I use the cad_sn3308.gau as my HSI. With this instrument you can switch between VOR1/ILS VOR2, GPS and GPS/AUTO. When switched to GPS you can manually step through your waypoints (steerpoint) of your flightplan (.pln) and does nothing to my secondary HSI. In GPS/AUTO this will be done automatically and advances through your waypoints along the flight and sets autopilot to the correct course and switches my secondary HSI to follow the primary HSI automatically. Since i only want to use my secondary HSI (which i designed myself) i want to make a switch that switches automatically to this GPS/AUTO function. Since the cad_sn3308.gau is a gauge file, I can't open it to see how this instrument does switches between GPS and GPS/AUTO mode. I've tried via (A:GPS drives NAV1) and TOGGLE_GPS_DRIVES_NAV1 but did't work. Probably simple but can't find the right statement for this. Please help me out? Greetings Slammer
  14. Jan, In the real F16 MFD you see the waypoints as white circles with the active one flashing. Is this possible and how to tackle this if it is so? Slammer
  15. Hello all, When i enter 125125 as comm freq i get 125.130 as a result. When i enter 125122 as comm freq i get 125.125 a result. 125127 gives 125.130 as result. Here's the code (L:DataEntry, number) 1000 / 100 * near 10000 % d 10 % r 10 / int d 10 % r 10 / int d 10 % r 10 / int 16 * + 16 * + 16 * + (> K:COM_RADIO_SET) How can i get this code right to show the freq i enter e.g. 125125 should result in 125.125 and 126126 should result in 126.126 Hope someone can help me out! Greetings Slammer
  16. Jan, Thanks for the response, unfourtunatly it doesn't work, herewith i sent the preset freq part of the radio. Hope it helpes? <Element> <Select> <Value>(L:UHF-MODE,enum) 1 == if{ 133.2 125.750 128.350 132.025 123.175 119.100 120.125 125.925 120.425 122.100 120.700 124.526 131.000 123.575 125.325 123.000 136.075 125.125 125.75 19 (L:UHF-CH,enum) case 100 * near 10000 % d 10 % r 10 / int d 10 % r 10 / int d 10 % r 10 / int 16 * + 16 * + 16 * + (> K:COM_RADIO_SET) } </Value> </Select> </Element> <!-- GRD SELECTION --> <Element> <Select> <Value>(L:UHF-MODE,enum) 2 == if{ 122.8 100 * near 10000 % d 10 % r 10 / int d 10 % r 10 / int d 10 % r 10 / int 16 * + 16 * + 16 * + (> K:COM_RADIO_SET) } </Value> </Select> </Element> Greetz Slammer
  17. All guru's I have a click statement that i want to control with an (L:var) e.g. as a repeater. I have the following code and want the click statement executed (L:var) times. The following code has 19 positions and with every click it advances one position. Is it possible to control it via an L:var to jump right away to UHF-CH 15 or any other? <Macro Name="UHFPRESET"> (L:UHF-CH, enum) 18 == if{ 0 (>L:UHF-CH, enum) } els{ (L:UHF-CH, enum) ++ (>L:UHF-CH, enum) } </Macro> <Area Left="46" Right="66" Top="168" Bottom="195"> <Visible>(A:CIRCUIT AVIONICS ON, bool) 1 == </Visible> <Tooltip>DED Toggle Switch</Tooltip> <Cursor Type="UpArrow" Repeat="Yes"/> <Click Repeat="Yes">(L:ICP-MODE,enum) 1 == (L:ICP-SEQ3,enum) 2== && if{@UHFPRESET} </Click> </Area> Thanks in advance
  18. Jan, Is it possible to let the active waypoint blink and add SAM threat circles as is in the real F-16? If this is possible could i also have a copy? my address is [email protected] Cheers Ed
  19. Jan and Bill, Finally it works! Super thanks for all your help and insights. A happy Slammer! :biggrin: :biggrin: Final code: //-----************************* AIRSPEED SCALE / LEFT DATA BLOCKS (SHIFTING) ******************************************** <!-- ########################################### AIRSPEED ############################################# --> <Element> <Shift> <Value Maximum="16" Minimum="5.5">(A:Circuit general panel on, bool) (A:GEAR HANDLE POSITION,bool) && if{ @DEVY } els{ 6.92 }</Value> <Scale Y="43.00"/> </Shift> <Element> <Visible>(A:Circuit general panel on, bool)</Visible> <Position X="0" Y="-300"/> <MaskImage Name="Airspeed_back_mask_white-6.bmp" ImageSizes="280,628"> <Axis X="127" Y="1157"/> </MaskImage> <Image Name="Airspeed_Tape_white.bmp" Bright="Yes" ImageSizes="63,765"> <Nonlinearity> <Item Value="1305" X="0" Y="1110"/> <Item Value="0" X="0" Y="2235"/> </Nonlinearity> </Image> <Shift> <Value Maximum="1305" Minimum="0"> (A:GROUND VELOCITY,knots) (A:AIRSPEED TRUE,knots) 40 < if{ 0 } els{ (A:AIRSPEED TRUE,knots) 43 max } (A:AIRSPEED INDICATED,knots) 40 < if{ 0 } els{ (A:AIRSPEED INDICATED,knots) 43 max } 3 (L:HUD-SPD,enum) case </Value> </Shift> </Element> <Element> <Position X="0" Y="-298"/> <Image Name="Airspeed_back_mask_white-1.bmp" Bright="Yes" ImageSizes="183,55"/> </Element> <Element> <Visible>(L:req speed,number) 1 ></Visible> <Position X="175" Y="2"/> <Image Name="Vertical_speed_pointer_white-2.bmp" Bright="Yes"> </Image> <Shift> <Value Minimum="-90" Maximum="80">(A:GROUND VELOCITY,knots) (L:req speed,number) - </Value> <Scale Y="0.80"/> </Shift> </Element> <Element> <Position X="170" Y="12"/> <Text Bright="Yes" X="60" Y="18" Length="5" Font="arial" Color="#FFFFFF" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>%(@REQGSAP 0 < if{ (A:Autopilot airspeed hold var,knots) (L:req speed,number) != if{ (L:req speed,number) (>K:AP_SPD_VAR_SET) } els{ 0 }) %</String> </Text> </Element>
  20. Bill, Thanks for your quick answer. I've tried what you suggested and put @REQGSAP in the mouse statement. Autopilot works normal and ok but the airspeedpointer (<) does not follow the Required G/S, eg the coupling does not take place. I will try to explain what should happen via situations and hopefully you will understand what this system oughts to do followed by the code. The example will be derived from the picture shown above (#5) and involves 3 instruments eg the HUD with the airspeedpointer (<), the Data Entry Display (DED, display on the right side showing CRUS page in yellow), Integraded Control Pane (ICP, keyboard) and the autopilot (AP) which is not shown but is a standard AP. Its kind of complecated so bare with me! Situation #1: No .pln file loaded AP works normal Airspeed pointer points to value of AP (which is good) Situation #2: .pln file loaded WPT not selected, WPT number is 0 (zero) AP goes bezerk and flickers between 000 and any preset AP IAS value (AP ought to function normal like situation #1) Airspeed pointer switches up and down reflecting 000 and preset value (should point to preset AP IAS value) Situation #3: Select WPT number 19 via the numerical keyboard (integrated control panel, ICP in the middle of the screen) followed by Enter button ETA is calculated and shown in the DED (on the picture 10:54:05) (calculation takes place via @DESTOS macro in ICP xml and DED xml) AP shows maximum speed (990 IAS) and is not functioning Airspeed pointer points to AP IAS value (990 IAS) Situation #4: Input Desired Time Over Steerpoint (DES TOS value on DED, on the picture it is 10:50:00) Required Groundspeed (REQ G/S) 461 knots is calculated to meet the DES TOS time (along the flightplan, not direct) REQ G/S value is set in the AP, but AP does not hold the speed when activated Airspeed pointer points to AP IAS value (461 knots) When REQ G/S value changes (due to windchanges for instance) AP value follows changed REQ G/S value CODES: ICP xml (keyboard) (snippets) used for input WPT number and DES TOS time: <Macro Name="DESTOS"> (L:ComGoldSetValue, number) s1 s0 24 <= if{ l0 100 * sp1 } 1000000 9999999 l0 rng if{ l0 10 * sp1 } l1 1000000 % 10000 / int 3600 * 1000000 9999999 l0 rng if{ l0 10 * sp1 } l1 10000 % 100 / int 60 * + 1000000 9999999 l0 rng if{ l0 10 * sp1 } l1 100 % 1 / + (>L:DES-TOS,seconds) </Macro> <Macro Name="STEERPOINT"> (L:ComGoldSetValue, number) (>L:STEERPOINT, number) 0 (>L:ComGoldSetValue, number) 2(>L:ICP-SEQ2, enum) </Macro> <!-- ENTER Key --> <Area Left="176" Right="206" Top="95" Bottom="125"> <Tooltip>ENTER</Tooltip> <Cursor Type="Hand"/> <Click> (L:ICP-MODE,enum) 8 == (L:ICP-SEQ2,enum) 1 == if{ (L:ComGoldSetValue, number) 0 < (L:ComGoldSetValue, number) 99 > || @STEERPOINT} 2 (>L:ICP-SEQ2, enum) (L:ICP-MODE,enum) 8 == (L:ICP-SEQ2,enum) 2 == if{ (L:ComGoldSetValue, number) 0 < (L:ComGoldSetValue, number) 240000 > || @DESTOS} 0 (>L:ICP-SEQ2, enum) </Click> </Area> HUD xml snippets which are used for airspeedtape and airspeed pointer: <Macro Name="RNGTOTGT">((A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS FLIGHT PLAN WP Count,number) 1 - (L:STEERPOINT,number) (>C:fs9gps:FlightPlanWaypointIndex) (C:fs9gps:FlightPlanWaypointRemainingTotalDistance, nmiles))</Macro> <Macro Name="DESTOSSECONDS">(L:DES-TOS,seconds) (P:ZULU TIME, seconds) -</Macro> <Macro Name="ACTTOT">@RNGTOTGT @DESTOSSECONDS / 3600 *</Macro> <Macro Name="REQGS">(A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS FLIGHT PLAN WP Count,number) 1 - (L:STEERPOINT,number) (C:fs9gps:FlightPlanWaypointRemainingTotalDistance, nmiles) @DESTOSSECONDS / 3600 * </Macro> <Macro Name="REQGSAP">(A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS FLIGHT PLAN WP Count,number) 1 - (L:STEERPOINT,number) (C:fs9gps:FlightPlanWaypointRemainingTotalDistance, nmiles) @DESTOSSECONDS / 3600 * (>K:AP_SPD_VAR_SET) </Macro> //-----************************* AIRSPEED SCALE / LEFT DATA BLOCKS (SHIFTING) ******************************************** <!-- ########################################### AIRSPEED ############################################# --> <Element> <Shift> <Value Maximum="16" Minimum="5.5">(A:Circuit general panel on, bool) (A:GEAR HANDLE POSITION,bool) && if{ @DEVY } els{ 6.92 }</Value> <Scale Y="43.00"/> </Shift> <Element> <Visible>(A:Circuit general panel on, bool)</Visible> <Position X="0" Y="-300"/> <MaskImage Name="Airspeed_back_mask_white-6.bmp" ImageSizes="280,628"> <Axis X="127" Y="1157"/> </MaskImage> <Image Name="Airspeed_Tape_white.bmp" Bright="Yes" ImageSizes="63,765"> <Nonlinearity> <Item Value="1305" X="0" Y="1110"/> <Item Value="0" X="0" Y="2235"/> </Nonlinearity> </Image> <Shift> <Value Maximum="1305" Minimum="0"> (A:GROUND VELOCITY,knots) (A:AIRSPEED TRUE,knots) 40 < if{ 0 } els{ (A:AIRSPEED TRUE,knots) 43 max } (A:AIRSPEED INDICATED,knots) 40 < if{ 0 } els{ (A:AIRSPEED INDICATED,knots) 43 max } 3 (L:HUD-SPD,enum) case </Value> </Shift> </Element> <Element> <Position X="0" Y="-298"/> <Image Name="Airspeed_back_mask_white-1.bmp" Bright="Yes" ImageSizes="183,55"/> </Element> <Element> <Position X="190" Y="2"/> <Image Name="Vertical_speed_pointer_white-2.bmp" Bright="Yes"> </Image> <Shift> <Value Minimum="-71" Maximum="80">(A:GROUND VELOCITY,knots) (A:Autopilot airspeed hold var, knots) -</Value> <Scale Y="0.80"/> </Shift> </Element> <Element> <Position X="170" Y="12"/> <Text Bright="Yes" X="60" Y="18" Length="5" Font="arial" Color="#FFFFFF" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>% %(@REQGSAP)%</String> </Text> </Element> DED xml snippets (input data in DED and display calculated values) <!-- TOS --> <Element> <Visible>(L:ICP-CRUS,enum) 1 ==</Visible> <!-- TEXT --> <Element> <Position X="17" Y="15"/> <Text X="90" Y="20" Bright="Yes" Length="4" Font="arial black" Bold="Yes" Color="yellowgreen" Adjust="right" VerticalAdjust="center"> <String>%TIME%!s!</String> </Text> </Element> <Element> <Position X="17" Y="31"/> <Text X="90" Y="20" Bright="Yes" Length="7" Font="arial black" Bold="Yes" Color="yellowgreen" Adjust="right" VerticalAdjust="center"> <String>%DES TOS%!s!</String> </Text> </Element> <Element> <Position X="17" Y="47"/> <Text X="90" Y="20" Bright="Yes" Length="3" Font="arial black" Bold="Yes" Color="yellowgreen" Adjust="right" VerticalAdjust="center"> <String>%ETA%!s!</String> </Text> </Element> <Element> <Position X="17" Y="63"/> <Text X="90" Y="20" Bright="Yes" Length="7" Font="arial black" Bold="Yes" Color="yellowgreen" Adjust="right" VerticalAdjust="center"> <String>%REQ G/S%!s!</String> </Text> </Element> <!-- VALUES --> <!-- SYSTEM --> <!-- STPTNUMBER SCRATCH --> <Element> <Visible>(L:ICP-SEQ2,enum) 1 == (L:ComGoldSetValue, number) 0 != &&</Visible> <Position X="82" Y="-1"/> <Text X="130" Y="20" Bright="Yes" Length="4" Font="arial black" Bold="Yes" Color="greenyellow" Adjust="right" VerticalAdjust="center"> <String>%((L:ComGoldSetValue, number) (A:GPS FLIGHT PLAN WP Count,number) 1 - >))%{if}%ERR%{else}%((L:ComGoldSetValue, number))%!02d!</String> </Text> </Element> <!-- STPTNUMBER --> <Element> <Visible>(L:ICP-SEQ2,enum) 1 == (L:ComGoldSetValue, number) 0 != && !</Visible> <Position X="82" Y="-1"/> <Text X="130" Y="20" Bright="Yes" Length="4" Font="arial black" Bold="Yes" Color="yellowgreen" Adjust="right" VerticalAdjust="center"> <String>%((L:STEERPOINT,number))%!2d!</String> </Text> </Element> <!-- DES-TOS SCRATCH --> <Element> <Visible>(L:ICP-SEQ2,enum) 2 == (L:ComGoldSetValue, number) 0 != &&</Visible> <Position X="60" Y="32"/> <Text X="130" Y="20" Bright="Yes" Length="7" Font="arial black" Bold="Yes" Color="greenyellow" Adjust="right" VerticalAdjust="center"> <String>%((L:ComGoldSetValue, number) 240000 >)%{if}%ERR%{else}%((L:ComGoldSetValue, number))%!6d!</String> </Text> </Element> <!-- DES-TOS DESIGNATED Time Over Steerpoint--> <Element> <Visible>(L:ICP-SEQ2,enum) 2 == (L:ComGoldSetValue, number) 0 != && !</Visible> <Position X="63" Y="31"/> <Text X="130" Y="20" Bright="Yes" Length="15" Font="arial black" Bold="Yes" Color="yellowgreen" Adjust="right" VerticalAdjust="center"> <String>%((L:DES-TOS, seconds) + flr 3600 / flr 24 %)%!02d!%:%((L:DES-TOS, seconds) flr 60 / flr 60 %)%!02d!%:%((L:DES-TOS, seconds) flr 60 %)%!02d!%</String> </Text> </Element> <Element> <Position X="120" Y="15"/> <Text X="110" Y="20" Bright="Yes" Length="8" Font="arial black" Bold="Yes" Color="yellowgreen" Adjust="left" VerticalAdjust="center"> <String>%((E:ZULU TIME,hours) flr 24 %)%!02d!%:%((E:ZULU TIME,minutes) flr 60 %)%!02d!%:%((E:ZULU TIME,seconds) flr 60 %)%!02d!</String> </Text> </Element> <!-- ETA --> <Element> <Visible>(A:Circuit general panel on, bool)</Visible> <Position X="120" Y="47"/> <Text X="110" Y="20" Bright="Yes" Length="8" Font="arial black" Bold="Yes" Color="yellowgreen" Adjust="left" VerticalAdjust="center"> <String>%((A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS FLIGHT PLAN WP Count,number) 1 - (L:STEERPOINT,number) (>C:fs9gps:FlightPlanWaypointIndex) (C:fs9gps:FlightPlanWaypointETA) (P:TIME ZONE OFFSET,seconds) + flr 3600 / flr 24 %)%!02d!%:%((C:fs9gps:FlightPlanWaypointETA) flr 60 / flr 60 %)%!02d!%:%((C:fs9gps:FlightPlanWaypointETA) flr 60 %)%!02d!%{else}%(@ETATAC flr 3600 / flr)%!02d!%:%(@ETATAC flr 60 / flr 60 %)%!02d!%:%(@ETATAC flr 60 %)%!02d!</String> </Text> </Element> <!-- REQ G/S --> <Element> <Position X="120" Y="63"/> <Text X="110" Y="20" Bright="Yes" Length="10" Font="arial black" Bold="Yes" Color="yellowgreen" Adjust="left" VerticalAdjust="center"> <String>%((A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS FLIGHT PLAN WP Count,number) 1 - (L:STEERPOINT,number) (C:fs9gps:FlightPlanWaypointRemainingTotalDistance, nmiles) @DESTOSSECONDS / 3600 *)%!5d!</String> </Text> </Element> </Element> <!-- END of TOS --> This is the compleet xml's concerning airspeedtape, airspeedpointer, input via keyboard and input/display in DED for Desired Time Over Steerpoint along the flightplan and not direct-to. The only thing i want is that the AP works as is should and still have the possibillity to reflect the Required G/S when a DES TOS time is entered. I hope you understand what i want to achieve with this complex instrument. Thanks in advance. Slammer
  21. Bill, No, there is no special reason for that but explains why my AP goes bezerk at the moment i load a flightplan. If @REQGSAP is zero then AP is constantly flickering between zero and 160 until i select a waypointnumber then it turns to the max value (in this case 990 knots). I've being trying to figure this one out for about 2 weeks without success, thats why i came to you. cOuld you show me how to fix this one, i'm not too familiar with that routine. Thanks in advance. Slammer
  22. Gents, Finally i managed to get the airspeedbug alongside the altitude tape and it is working. The problem now is that the autopilot (AP) isn't functioning anymore. If i omit the (>K:AP_SPD_VAR_SET) statement in the macro than autopilot works normally but then the airspeedbug does not work anymore. Any clues? <Macro Name="REQGSAP">(A:GPS IS ACTIVE WAY POINT, bool))%{if}%((A:GPS FLIGHT PLAN WP Count,number) 1 - (L:STEERPOINT,number) (C:fs9gps:FlightPlanWaypointRemainingTotalDistance, nmiles) @DESTOSSECONDS / 3600 * (>K:AP_SPD_VAR_SET) </Macro> //-----************************* AIRSPEED SCALE / LEFT DATA BLOCKS (SHIFTING) ******************************************** <!-- ########################################### AIRSPEED ############################################# --> <Element> <Shift> <Value Maximum="16" Minimum="5.5">(A:Circuit general panel on, bool) (A:GEAR HANDLE POSITION,bool) && if{ @DEVY } els{ 6.92 }</Value> <Scale Y="43.00"/> </Shift> <Element> <Visible>(A:Circuit general panel on, bool)</Visible> <Position X="0" Y="-300"/> <MaskImage Name="Airspeed_back_mask_white-6.bmp" ImageSizes="280,628"> <Axis X="127" Y="1157"/> </MaskImage> <Image Name="Airspeed_Tape_white.bmp" Bright="Yes" ImageSizes="63,765"> <Nonlinearity> <Item Value="1305" X="0" Y="1110"/> <Item Value="0" X="0" Y="2235"/> </Nonlinearity> </Image> <Shift> <Value Maximum="1305" Minimum="0"> (A:GROUND VELOCITY,knots) (A:AIRSPEED TRUE,knots) 40 < if{ 0 } els{ (A:AIRSPEED TRUE,knots) 43 max } (A:AIRSPEED INDICATED,knots) 40 < if{ 0 } els{ (A:AIRSPEED INDICATED,knots) 43 max } 3 (L:HUD-SPD,enum) case </Value> </Shift> </Element> <Element> <Position X="0" Y="-298"/> <Image Name="Airspeed_back_mask_white-1.bmp" Bright="Yes" ImageSizes="183,55"/> </Element> <Element> <Position X="190" Y="2"/> <Image Name="Vertical_speed_pointer_white-2.bmp" Bright="Yes"> </Image> <Shift> <Value Minimum="-71" Maximum="80">(A:GROUND VELOCITY,knots) (A:Autopilot airspeed hold var, knots) -</Value> <Scale Y="0.80"/> </Shift> </Element> <Element> <Position X="170" Y="12"/> <Text Bright="Yes" X="60" Y="18" Length="5" Font="arial" Color="#FFFFFF" Adjust="Right" VerticalAdjust="Center" Multiline="No" Fixed="No"> <String>% %(@REQGSAP)%</String> </Text> </Element> Slammer
  23. Jan, thanks anyway for your help and pointing me in the right direction, i will continue trying to figure this one out. Ed
  24. Jan, i've tried several things you said, result is that the pointer doesn't move at all. Here is the code with the normal airspeedtape and the extra element with the pointer. total length of the tape is 1125 pixels from 0 to 1305 kts is 0.862 pixels per kts. //-----************************* AIRSPEED SCALE / LEFT DATA BLOCKS (SHIFTING) ******************************************** <!-- ########################################### AIRSPEED ############################################# --> <Element> <Shift> <Value Maximum="16" Minimum="5.5">(A:Circuit general panel on, bool) (A:GEAR HANDLE POSITION,bool) && if{ @DEVY } els{ 6.92 }</Value> <Scale Y="43.00"/> </Shift> <Element> <Visible>(A:Circuit general panel on, bool)</Visible> <Position X="0" Y="-300"/> <MaskImage Name="Airspeed_back_mask_white-6.bmp" ImageSizes="280,628"> <Axis X="127" Y="1157"/> </MaskImage> <Image Name="Airspeed_Tape_white.bmp" Bright="Yes" ImageSizes="63,765"> <Nonlinearity> <Item Value="1305" X="0" Y="1110"/> <Item Value="0" X="0" Y="2235"/> </Nonlinearity> </Image> <Shift> <Value Maximum="1305" Minimum="0"> (A:GROUND VELOCITY,knots) (A:AIRSPEED TRUE,knots) 40 < if{ 0 } els{ (A:AIRSPEED TRUE,knots) 43 max } (A:AIRSPEED INDICATED,knots) 40 < if{ 0 } els{ (A:AIRSPEED INDICATED,knots) 43 max } 3 (L:HUD-SPD,enum) case </Value> </Shift> </Element> <Element> <Position X="0" Y="-298"/> <Image Name="Airspeed_back_mask_white-1.bmp" Bright="Yes" ImageSizes="183,55"/> </Element> <Element> <Element> <Clip Top="250" Left="10" Right="701" Bottom="390"/> <Position X="190" Y="310"/> <Image Name="Vertical_speed_pointer_white-2.bmp" Bright="Yes" ImageSizes="28,137"> </Image> <Shift> <Value Maximum="1305" Minimum="0" > (@REQGS) (A:AIRSPEED TRUE,knots) 40 < if{ 0 } els{ (A:AIRSPEED TRUE,knots) 43 max } (A:AIRSPEED INDICATED,knots) 40 < if{ 0 } els{ (A:AIRSPEED INDICATED,knots) 43 max } 3 (L:HUD-SPD,enum) case</Value> <Nonlinearity> <Item Value="0" X="190" Y="-245"/> <Item Value="1305" X="190" Y="865"/> </Nonlinearity> </Shift> </Element> </Element> Somehow i miss something but cannot figure it out where to put the nonlinearity as you said. Do i have to replace the one of the pointer? Ed

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.