Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete, guys,

 

I am struggling with a comand in my A2A 182. I am trying to assign a LVAR (WindowDefrosterControlKnob) to an axis.

Just as an information: I am using a BU836 interface board and experimenting with potentiometers and switches.

 

First of all, the WindowDefrosterControlKnob will take values from 0 (closed) to 100 (full open), when defining it in the macro file as

WindowDefrosterControlKnob=INC and WindowDefrosterControlKnob=DEC I can assign a button to either way and open and close it. However, there is no feedback if it is open, close or somewhere in the middle.

So I thought I could use a potentiometer which has a stop on both sides which would give a feel if it is open, middle or closed etc (hope you understand what I mean).

 

Anyhow, the only way to get it somehow to life is when using WindowDefrosterControlKnob=SET within the LVAR macro and then assigning it to the axis. However as the poti output is -16359 to 16383 and the actual WindowDefroster reacts only to values of 0 - 100 controlling it is not the right word. I can open it and close it but only by accident finding a value which is in the range of 0 - 100. Basically the same would happen with a simple on/off switch and setting the values to 0 or 100, but I also wanted to get all values in between set.

 

So, either I need to get me a poti which has much less resolution (not sure if this is available at all) or there is a way to translate the  -16359 to 16383 to the values the variable would expect (0-100).

 

Is there a way to do this?

Sorry if this has been answered but I have read so many articles and not really sure what else to search for...

 

Thanks and best Regards.

SJ

Posted

However as the poti output is -16359 to 16383 and the actual WindowDefroster reacts only to values of 0 - 100 controlling it is not the right word. I can open it and close it but only by accident finding a value which is in the range of 0 - 100. Basically the same would happen with a simple on/off switch and setting the values to 0 or 100, but I also wanted to get all values in between set.

 

So, either I need to get me a poti which has much less resolution (not sure if this is available at all) or there is a way to translate the  -16359 to 16383 to the values the variable would expect (0-100).

 

Is there a way to do this?

 

Yes, use the scaling facilities for axis assignments, as described in the FSUIPC Advanced Users guide, about page 37 -- see under heading Additional parameters to scale input axis values.

 

Pete

Posted

Pete,

Thanks a lot, that worked perfect. I knew I overlooked something.

It bothered me all day and I came to a workaround. I could have divided the total range by 10 (roughly 3200) and assign via the range option 10 values from 0 to 100.

so -16000 to 12800 set 0 and so on.

Anyhow, thank you very much for the fast reply.

Cheers

SJ

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy 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.