Jump to content
Sign in to follow this  
Fracture

For those of you building cockpits

Recommended Posts

I figured out how to get the analog counters to work.

All of the digits must be named according to what they count ie:

alt_dig2,alt_dig1 (named from left to right) for a 2 digit counter as in:

 

[Altimeter]

Type=PRESSURE_ALTIMETER_2 <----the 2 is for 2 digits

NodeName=needle_alt

CounterNodeFormat=alt_dig%d

MovementType=ROTATION_Y

ValueUnit=FEET

Set[01].Position=0.0

Set[01].Value=0.0

Set[02].Position=360.0

Set[02].Value=1000.0

 

for a 3 digit altimeter they would be named

alt_dig3,alt_dig2,alt_dig1 (named from left to right)

 

[Altimeter]

Type=PRESSURE_ALTIMETER_3

NodeName=alt_needle

CounterNodeFormat=alt_dig%d

MovementType=ROTATION_Y

ValueUnit=FEET

Set[01].Position=0.0

Set[01].Value=0.0

Set[02].Position=360.0

Set[02].Value=100.0

 

the Set[02].Value corresponds to both the position of the needle and the movement of alt_dig1 so it must be 100 for a 3 digit altimeter and 1000 for a 2 digit altimeter. Otherwise the digits won't be in sync with the needle.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..