inputting datarefs help.

General Discussions
Post Reply
chrishoppy
Flight Attendant
Posts: 18
Joined: 18 Jun 2019, 21:19
Location: England UK
Status: Offline

inputting datarefs help.

Post by chrishoppy » 01 Jul 2019, 02:02

having trouble inputting a certain dataref into spadnext.

im trying to programme my ovhd panel brightness into a switch so when it is swithched on the panel will be value 1 and when it is switched off it will be value 0.

the problem however is zibo panel brightness has 4 different values in the same dataref as shown below.

is there any way i can seperate these or add into the value box with a comma to represent a different knob movement.
You do not have the required permissions to view the files attached to this post.

User avatar
c0nnex
Site Admin
Posts: 4872
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: inputting datarefs help.

Post by c0nnex » 05 Jul 2019, 13:21

I think you will have to "mimic" that behaviour using a local helper-Variable.
e.g. have a local Var "BrightnessSwitch"
to the siwtch assign
Increment BrightnessSwitch , min 0 , max 3 , Rollover = on
thern add a script-events
if Brightnessswitch = 0 then set panel brightness to "firstValue"
if Brightnessswitch = 1 then set panel brightness to "secondValue"
and so on

chrishoppy
Flight Attendant
Posts: 18
Joined: 18 Jun 2019, 21:19
Location: England UK
Status: Offline

Re: inputting datarefs help.

Post by chrishoppy » 06 Jul 2019, 14:41

The value I want to change is the one that says 0.55. So when I move the switch only that value changes but the other 3 values remain untouched.

User avatar
c0nnex
Site Admin
Posts: 4872
Joined: 10 Mar 2015, 21:52
Location: Munich, Germany
Contact:
Status: Offline

Re: inputting datarefs help.

Post by c0nnex » 08 Jul 2019, 15:20

oops sorry misread.
That has to be changed in the dataref definition of SPAD.neXt. I'll look at it

chrishoppy
Flight Attendant
Posts: 18
Joined: 18 Jun 2019, 21:19
Location: England UK
Status: Offline

Re: inputting datarefs help.

Post by chrishoppy » 08 Jul 2019, 17:01

Thanks Ulrich. Also is there a full manual on spad.next that explains everything i.e what shortmode does etc.

Post Reply