#i cant change my vhf voulme the right dataref is from 0-1 and my poti goes from 13 to 1023

1 messages · Page 1 of 1 (latest)

brazen veldt
#

i cant change my vhf voulme the right dataref is from 0-1 and my poti goes from 13 to 1023 what do i have to do to get that working

spark perch
#

Try this formula
(@-13)/1010

brazen veldt
#

working thanks

#

but when the poti is on the center its just starting at 0.1 and the poti already is on 90

spark perch
#

I would suspect your poti is not linear but logarithmic. Is it a standard B10K poti or something else?

brazen veldt
#

is a OEM aircraft poti

#

so how can i fix that ?

spark perch
#

Do the extreme positions behave correctly, but middle region is too low?

brazen veldt
#

no it works normaly from 13-1023 but it starts the dataref at 90 from the poti

spark perch
#

I don't understand what you say. It starts the data ref at 0.9 and goes to 1.0 as you increase the poti?

brazen veldt
#

no the dataref is from 0.1 to 1 so when i turn the poti to 15 or so it not doing anything with the dataref

spark perch
#

The formula is for a poti range of 13 to 1023. Is this correct?

brazen veldt
#

yes

spark perch
#

Fully to the left Mobiflight reads 13 and fully to the right it reads 1023. Is this correct?

brazen veldt
#

yes thats correct

spark perch
#

What is 90?

brazen veldt
#

when the poti is at 90 then mobiflight sends somthing to the dataref but below 90 not

#

maybe have time for a call with screen share

spark perch
#

90 is the poti reading received by Mobiflight?

brazen veldt
#

yes

spark perch
#

From 13 to 90 nothing happens?

brazen veldt
#

yes i dont now why

#

know*

spark perch
#

OK and what happens after 90? BTW, 90 would correspond to a movement of only 0.08 on the Sim scale.

#

Maybe the Sim moves in discrete 0.1 steps.

brazen veldt
spark perch
#

In a linear poti 90 should be achieved at 8% turn or only about 20 degrees

#

We can recalculate to ignore the first 90 units

brazen veldt
#

yea that would be good

spark perch
#

Try
(@-90)/933

#

May need to check the bounds

brazen veldt
#

will do

spark perch
#

Max((@-90)/933, 0)

brazen veldt
#

still the same

spark perch
#

Is the minimum reading in the Sim 0 or 0.1?

brazen veldt
#

0.1 is min

spark perch
#

Ahh

brazen veldt
#

and max 1

spark perch
#

The math goes 0 to 1

brazen veldt
#

at 0.1 the volume handle starts

#

and 0.1-0 is swich to off

spark perch
#

(@-13)/1122 + 0.1

#

This formula goes from 0.1 to 1

brazen veldt
#

works now thanks

spark perch
#

It is just math

#

But you won't be able to switch off

brazen veldt
#

i have it already on a button

#

for press

#

when you press the button its if up its on