PDA

View Full Version : calling on kiek



djcevera20
10-05-2009, 09:36 AM
nico need some help...ok totatly fed up with trying to get pmdg decided to switch permenantly to lvld... im using the dta rotary encoder boards for all rotaries for the mcp when i turn them i see no change on the displays (displays are going thru oc hardware) I took this section of your mcp alt code for you to help me with. what is it that i need to change in order to get the displays to change from either the rotaries or if i change the setting using the mouse? Thanks nico....i know i know i should have made the change sooner :oops:

Var 299 Static // read/write ALT from/to level-D panel
{
IF &ALT <> v299 // block a new value coming from the rotary
{
&ALT = v299 // new value coming from panel
}
}

Var 1 name RO_ALT Link IOCARD_ENCODER Device 2 Input 2 Aceleration 2 Type 2
{
L0 = &RO_ALT * -1 // turning right should be plus
&ALT = LIMIT 0 640 L0
v299 = &ALT // to panel
}

Var 2 name ALT
{
Call &OutALT
}

Var 3 name OutALT Link SUBRUTINE
{
IF &ColdAndDark = 1
{
&D_ALT = -999999
&D_ALTL0 = -999999
&D_ALTL00 = -999999
}
ELSE
{
IF &TestMIP = 1
{
&D_ALT = 888
&D_ALTL0 = 8
&D_ALTL00 = 8
}
ELSE
{
L0 = &ALT * 100
IF L0 >= 10000
{
&D_ALTL0 = DIV L0 10000
L1 = MOD L0 10000
&D_ALTL00 = DIV L1 1000
&D_ALT = MOD L0 1000
}
ELSE
{
&D_ALTL0 = -999999
IF L0 >= 1000
{
&D_ALTL00 = DIV L0 1000
&D_ALT = MOD L0 1000
}
ELSE
{
&D_ALTL00 = -999999
&D_ALT = L0
}
}
}
}
}

Var 4 name D_ALT Link IOCARD_DISPLAY Device 2 Digit 9 Numbers 3
Var 5 name D_ALTL00 Link IOCARD_DISPLAY Device 2 Digit 12 Numbers 1
Var 6 name D_ALTL0 Link IOCARD_DISPLAY Device 2 Digit 13 Numbers 1

djcevera20
10-05-2009, 10:22 AM
I may have found something...will this work if i write it this way in sioc

Var 299 name Alt
{
v1001 = &Alt
}

Var 1001 Link IOCARD_DISPLAY Digit 0 Numbers 5

djcevera20
10-06-2009, 12:57 PM
anyone else know if this will work?

ran56
10-06-2009, 02:15 PM
http://www.lekseecon.nl/phpbbv2/

Best way to get help and support from Nico :)

Good luck