#Potentiometer variable

1 messages · Page 1 of 1 (latest)

gaunt oxide
#

Hi, I have a Saitek X-56 and I want with one potentiometer to control the lights of FCU in my fenix a320. The problem is that FCU variable accept values from 0 to 1024 but the SAITEK provide values from 0 to 65535. How can I transform the value to the pontatiommter to the result of (1024/65535) * 1000. I tried to use variable and give the to fenix variable. Keep in mind the pontatiometer is a slider

raw hare
#

Which event are you trying to use? I haven't seen any light potentiometer in the Sim use a range 0 to 1023.
Your math also seems incorrect for the stated purpose.

subtle girder
#

A lot of events on hubhop might have scaling for Arduino pots coded into the RPN

raw hare
#

For example, this preset for FNX320 FCU INTEG BRIGHTNESS KNOB SET

#

The Sim expects a decimal number from 0 to 1

#

So you would need to change the RPN code to

@ 65535 / 0 max 1 min (>L:A_FCU_LIGHTING)