Results 1 to 3 of 3
-
11-23-2004, 10:55 PM #1null nullGuest
[LOGIC] Center logic 0 Three position toggle switch
Hello Enrico
I tried to create a switch with a logic 0 in the center, just like a
real on - off - on toggle. the stock Toggle switch code from the
release 42d is bellow:
bitmap coverswitch3,0,-108.0,31.9,-86.7,14.8,0,1,.4
bitmap coverswitch3,1,-185.2,31.9,-163.5,14.8,0,1,.4
bitmap coverswitch3,2,-159.0,31.9,-137.7,14.8,0,1,.4
I changed the logic values so that the center value is zero and the
upper value is 1
bitmap coverswitch3co,1,-108.0,31.9,-86.7,14.8,0,1,.4
bitmap coverswitch3co,0,-185.2,31.9,-163.5,14.8,0,1,.4
bitmap coverswitch3co,2,-159.0,31.9,-137.7,14.8,0,1,.4
I even tried changing the position of the values
bitmap coverswitch3co,0,-185.2,31.9,-163.5,14.8,0,1,.4
bitmap coverswitch3co,1,-108.0,31.9,-86.7,14.8,0,1,.4
bitmap coverswitch3co,2,-159.0,31.9,-137.7,14.8,0,1,.4
The switch will not follow the logic, what did I do wrong.
David
-
11-24-2004, 05:00 AM #2Enrico SchirattiGuest
Re: [LOGIC] Center logic 0 Three position toggle switch
Hi,
the sequence has to be 0, 1, 2... so the second example you used
> bitmap coverswitch3co,0,-185.2,31.9,-163.5,14.8,0,1,.4
> bitmap coverswitch3co,1,-108.0,31.9,-86.7,14.8,0,1,.4
> bitmap coverswitch3co,2,-159.0,31.9,-137.7,14.8,0,1,.4
would ne the one to use.
> The switch will not follow the logic, what did I do wrong.
I am not sure what you want to do with all of this, I mean I do not get the
point, the 0, 1, 2 values are anything you want them to be.
If the clicking is erroneous, then that is obvious: the mouse click at the
top is 0, the one in the middle is 1 and the one down is 2...
If you use a second instance of the StbtRuddA switch with the co
extension...
element coverswitch3co,-218.8,97.1,StbyRuddA /// moved to the left to
compare it to the normal one
.... then I only find the clicking erroneous, but that is normal.
Ciao
Enrico
"David Allen" wrote in message
news:272127.54034@wb.onvix.com...
> Hello Enrico
> I tried to create a switch with a logic 0 in the center, just like a
> real on - off - on toggle. the stock Toggle switch code from the
> release 42d is bellow:
>
> bitmap coverswitch3,0,-108.0,31.9,-86.7,14.8,0,1,.4
> bitmap coverswitch3,1,-185.2,31.9,-163.5,14.8,0,1,.4
> bitmap coverswitch3,2,-159.0,31.9,-137.7,14.8,0,1,.4
>
> I changed the logic values so that the center value is zero and the
> upper value is 1
>
> bitmap coverswitch3co,1,-108.0,31.9,-86.7,14.8,0,1,.4
> bitmap coverswitch3co,0,-185.2,31.9,-163.5,14.8,0,1,.4
> bitmap coverswitch3co,2,-159.0,31.9,-137.7,14.8,0,1,.4
>
> I even tried changing the position of the values
>
> bitmap coverswitch3co,0,-185.2,31.9,-163.5,14.8,0,1,.4
> bitmap coverswitch3co,1,-108.0,31.9,-86.7,14.8,0,1,.4
> bitmap coverswitch3co,2,-159.0,31.9,-137.7,14.8,0,1,.4
>
> The switch will not follow the logic, what did I do wrong.
>
> David
>
-
11-24-2004, 04:42 PM #3null nullGuest
Re: [LOGIC] Center logic 0 Three position toggle switch
On Wed, 24 Nov 2004 04:00:41 EST, Enrico
Schiratti wrote:
>Hi,
>
>the sequence has to be 0, 1, 2... so the second example you used
>
>> bitmap coverswitch3co,0,-185.2,31.9,-163.5,14.8,0,1,.4
>> bitmap coverswitch3co,1,-108.0,31.9,-86.7,14.8,0,1,.4
>> bitmap coverswitch3co,2,-159.0,31.9,-137.7,14.8,0,1,.4
>
>would ne the one to use.
>
>> The switch will not follow the logic, what did I do wrong.
>
>I am not sure what you want to do with all of this, I mean I do not get the
>
>point, the 0, 1, 2 values are anything you want them to be.
Since the value of the switch cover open is 0, I was just aranging
the toggle switches so that the "OFF" text matched logic 0.
Just matching the bitmaps switches to the real overhead panel
switches.
>If the clicking is erroneous, then that is obvious: the mouse click at the
>top is 0, the one in the middle is 1 and the one down is 2...
StbyRuddA = 0 would still set it to the up even if the middle graphic
is called with
bitmap coverswitch3co,0,-185.2,31.9,-163.5,14.8,0,1,.4
David
Similar Threads
-
SixPack Logic
By Potrohkocsonya in forum PMSystemsReplies: 2Last Post: 04-18-2009, 12:41 PM -
Airbus logic
By 3202b in forum PMSystemsReplies: 3Last Post: 02-08-2007, 04:36 PM -
[LOGIC] loopvar
By null null in forum PM General Q & AReplies: 1Last Post: 12-02-2004, 06:57 AM -
[LOGIC] Switch inop + misc
By null null in forum PM General Q & AReplies: 0Last Post: 12-01-2004, 04:27 PM
Explore Exciting Connections for a Night of Fun in Your City
Ready for an Unforgettable Night?...