# N1 GAUGE help

## Recommended Posts

want to do a dual dial rpm. i can cut the (A:TURB ENG1 CORRECTED N1,percent) to get my big dial. but what trickery is used to isolate the ones place for the small dial.

##### Share on other sites

Hi Ridgell,Could you enhance the idea? I don't know about dual dials...BTW, if this gauge will show N1 rpm as percentage, you should use(A:TURB ENG(n) N1,percent) instead of the "CORRECTED" version.Tom

##### Share on other sites

sure tom,lose the corrected.its like the second hand on a watch the larger dial describes 100% as 1-10, and the smaller the ones place. 53% would show 5 on the large dial and 3 on the smaller one.there are many such rpm gauges around. but i have not found one in xml, and i do not understand 'c'. i cant just rework the bitmaps of a 'c' gauge because the gauge i am making is swedish, they have their own conventions, dials spin counter clockwise, from bottom to top, etc. so for the sake of accuracy i have to make my own. im a monkey see monkey do programer, and am hoping there is some bit manipulation or math trick that can turn 53% into a 3 ( droping the tens place) for the smaller dial. i can get there by (A:TURB ENG1 N1,percent) 90> if{..subtract 90} 80> if{subtract 80} etc but surly there is a more elegant and shorter solution.

##### Share on other sites

There are 2 ways to get the "ones" you're describing. Most likely you would use the first example as it is for a dial. The second example is more for rolling digits with a "snap".1-- (A:TURB ENG1 CORRECTED N1,percent) 10 %2-- (A:TURB ENG1 CORRECTED N1,percent) 100000 + 100 * d 1 % r flr 1000 % d 100 / flr r 100 % 99 == if{ + }Regards,Roman

##### Share on other sites

Ridgell,Now I understand :-)For the 10th units (10-20-30-etc) use(A:TURB ENG1 N1,percent) 10 / intFor the units, use:(A:TURB ENG1 N1,percent) int 10 % Tom

##### Share on other sites

that worked!thx guys

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×

• Tom Allensworth,
Founder of AVSIM Online

• ### Hot Spots

• Flight Simulation's Premier Resource!

AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!