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.

string help

Featured Replies

%((A:SPOILERS HANDLE POSITION,bool)) %{if}(:(%{else} %!1d!% F%((A:Flaps handle index, number))%!0d!aint working! i am trying to get a one line display ( why 1 line; has to shift and rotate) to display spoiler and flaps status.something like; B (16 characters worth of empty space here ) F3 ...spoiler out flaps at 3or; (17 characters worth of empty space here ) F1 ...no spoiler flaps 1if the control is not deployed then nothing about that control is displayed. the above (bad string) shows F0 & when spoiler is deployed the B is front and center pushing the flaps display of screen....its to messed up for me to understand how to fix it. monkey see monkey do programing ait working for me on this one. this monkey needs a better example plzzzz

Hello Try for flaps %(45 30 20 8 0 5 (A:Flaps handle index, number) case)%!2d! Numbers 45 to 0 are your aircraft flap settings (degrees). Last number on the right is the number of settings used. you can change them to what ever you require but the settings used number must match the number of flap settings.

Paul EGLD

Hi,It is:(A:SPOILERS HANDLE POSITION,position) between 0 and 1.and you could use:(A:FLAPS HANDLE INDEX,enum), number of positions.So something like:S %((A:SPOILERS HANDLE POSITION,position) 0 >)%{if}(up)%{else}(down)-----F %((degrees... number of positions (A:Flaps handle index, number) case)%!2d!)%!d!Jan"Beatus ille qui procul negotiis..."

Jan

 

 

 

"Beatus ille qui procul negotiis..."

foutje:S %((A:SPOILERS HANDLE POSITION,position) 0 >)%{if}Up%{else}Down_____F %(( degrees... number of positions (A:Flaps handle index,number) case)%!2d!Jan"Beatus ille qui procul negotiis..."

Jan

 

 

 

"Beatus ille qui procul negotiis..."

Hi Steve,In addition to the excellent advice above, why not use a tag to cancel the string if neither flaps nor speed brakes are used? Or maybe I misunderstood you. I suppose this is for the AJ37 HUD?/tom

%(@speed)%!03d!% ________________ %(@alt)%!03d!@pitch @banki was hopeing for something like the above, 2 string statements on a single line that i could rotate and shift as 1 big line.jan has what i wanted, but...odd thing; the above line rotates and shifts, but it does not exactly match with bitmaps put in the same place; ie; the string goes a hair below the bitmap line at 90 degrees of bank and a hair above wings level...and if i use 2 string lines (ladder style) they do match each other...they tighten and spread acording to the bank angle. i have tried vertical adjust center, bottom, top, no can get it just right...it is not far off, but it is not perfect.and i do use the my beautiful hud is looseing features like a fat lady on a jello diet...the aj37 had a very rudimentery hud. much less complex then the one of my imagination.

  • 3 years later...
  • Moderator

Resurrected this post to recover the necroed XML script! - Bill (N4GIX)

<Element><Position X="120" Y="114"/>			<Text X="180" Y="16" Length="26" Fixed="No" Font="arial black" Adjust="center" VerticalAdjust="bottom" Color="%('#ffffff' '#00ff00' '#ac3628' 3 (L:hudcolor,enum) case)" Bright="Yes"><String>%(@speed)%!03d!% ________________ %(@alt)%!03d!</String><Axis X="90" Y="0"/></Text>			<Shift>				<Value>@pitch </Value>				<Scale Y="25"/>			</Shift>			<Rotate>				<Value>@bank</Value>			</Rotate>			<Clip Left="43" Right="207" Top="16" Bottom="159"/>		</Element>

i was hopeing for something like the above, 2 string statements on a single line that i could rotate and shift as 1 big line.jan has what i wanted, but...odd thing; the above line rotates and shifts, but it does not exactly match with bitmaps put in the same place; ie; the string goes a hair below the bitmap line at 90 degrees of bank and a hair above wings level...and if i use 2 string lines (ladder style) they do match each other...they tighten and spread acording to the bank angle. i have tried vertical adjust center, bottom, top, no can get it just right...it is not far off, but it is not perfect.and i do use the <visible>my beautiful hud is looseing features like a fat lady on a jello diet...the aj37 had a very rudimentery hud. much less complex then the one of my imagination.

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

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.