Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30
  1. #11
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: toggle switches to fs9

    Maybe this is a too difficult task?
    One need some basic knowledge of electronics and of programming...
    It is certainly not plug and play.

  2. #12
    10+ Posting Member
    Join Date
    Aug 2009
    Location
    UK
    Posts
    14
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: toggle switches to fs9

    once told how to do it i'll know for future switches,

  3. #13
    300+ Forum Addict autocadplease's Avatar
    Join Date
    Jan 2008
    Location
    British Columbia, Canada
    Posts
    450
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: toggle switches to fs9

    Quote Originally Posted by smartarze View Post
    how do i then assign this to my toggle switch as leo's board doesn't have any software
    You use FSUIPC. Open FSUIPC windows, go to buttons. Activate the switch or button, FSUIPC will display what button you are pressing, then assign the offset value.
    Leo's controller simply makes the card a HID (Human Interface Device) / joystick.
    Grant D.
    Nelson,B.C. Canada
    Win7 32bit, FSX, PM Boeing, TH2GO, GEX, VoxATC

  4. #14
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: toggle switches to fs9

    Ok, thank you for the additional info about Leo's board!

    From there (FSUIPC) it is easy, at a button press one should select one of the FSControls that toggles a bit in a byte. Which bit in what byte is what you have defined in FSConvigurator.

  5. #15
    10+ Posting Member
    Join Date
    Aug 2009
    Location
    UK
    Posts
    14
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: toggle switches to fs9

    i give up, still can't get my head around it

    when you say assign the offset value......where do i get that from?

    i am really sorry guys for being a pain....please help me get through this first one.

  6. #16
    75+ Posting Member davek's Avatar
    Join Date
    Jan 2008
    Location
    FNQ Australia
    Posts
    126
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: toggle switches to fs9

    Hi smartarze (luv the name)

    Dont worry mate, I should have called myself dumbarze when it comes to electronics stuff.
    I will try and explain it as I understand it.. if i get something wrong guys please correct me

    The switch is connected to the computer through the Card. There is no software as such associated with the switch or the card.

    (think of your switch as a keyboard letter and the card as the guts of the keyboard.) It gets plugged into a USB port. With a keyboard all the letters and numbers are assigned so the computer knows what the key is and what it is supposed to do or represent.

    When you connect a switch to a computer through the card, there is an electrical imulse but the computer doesnt know what to do with that.

    For example, you want a switch to represent the landing gear lever. On the keyboard you press the G key and MSFS software 'knows' that it is the G key and performs the action.
    In the normal MSFS software you can reassign the G key to any function you want and any key to the landing gear function.

    This is a simple way to set up the cockpit but you need to be able to tell the computer software about the external switches and what you want the software to do when it receives that information.

    To do that you can use FSUIPC. It is the software that interfaces between the switch/card and the computer FS software. If you register for the modest fee, it opens up a whole new world for attaching switches etc. The program can assign a specific keystroke or macro to a switch. Press the switch, FSUIPC reads the input, and then tells the software what the switch input represents, ie cycle landing gear.

    An offset is similar to an address. The software needs to know that the switch you just pushed (representing landing gear) where to send that input to what part of the software to make the action happen. Its like sending a letter to your granny in the US and not putting a street number and name... its got no idea where its going or what its doing.

    When you download FSUIPC there is an excellent readme file. DL it and print it out. Make coffee and hit the comfy chair and read it, several times, soon it will click as to what to do. There is a list of offsets for the basic FS functions + more in the DL file.

    Its pretty complex and I am only just scraping the surface. It might be worth sticking to the very basics like I am doing at first until you get a better understanding of it.

    Hope that helps and I havent steered you up the wrong path...
    cheers
    Dave

  7. #17
    10+ Posting Member
    Join Date
    Aug 2009
    Location
    UK
    Posts
    14
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: toggle switches to fs9

    dave, thankyou ever so much for the time you have taken to explain that to me, The problem i have is, with the leveld 767 there are no keyboard commands to flick the light switches on and off (as far as i know) so i cannot use the fs offset values.

    UPDATE:

    I have sort of managed to figure it out but i am getting the wrong switches flicking or getting 2 flicking on and off at once.

    does this sound right?
    for instance i want to control the position light:
    as FS Control, selected "Offset Byte togglebits"
    - in the offset box, entered x8B34
    - in the parameter box, entered x01 (for bit 1)

    however this flicks the ovrd switch instead of the position lights


    what am i doing wrong?

  8. #18
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: toggle switches to fs9

    Quote Originally Posted by smartarze View Post
    - in the parameter box, entered x01 (for bit 1)
    x01 will give you bit 0 which is the OVRD light ....
    x02 will give you bit 1
    x04 will give you bit 2
    and so on ...

    And also notice the difference between FSCONV sections 3.2 and 3.3.
    There are two implementations possible of lights buttons. You can activate only one of them in FSCONvigurator. Make sure the slider is set to 12, and just experiment a bit, I'd recommend.

  9. #19
    10+ Posting Member
    Join Date
    Aug 2009
    Location
    UK
    Posts
    14
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: toggle switches to fs9

    so to continue that

    x08 = 3bit
    x16 = 4bit
    x32 = 5bit

    is that right as i'm able to only get a few switches working, still something simple i'm missing i think.

    Also when it comes to doing right landing light and nose light they are bits 8 - 11 how does that work?

    remember explain as simple as possible

  10. #20
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: toggle switches to fs9

    Quote Originally Posted by smartarze View Post
    x08 = 3bit
    x16 = 4bit
    x32 = 5bit
    No!, not really:
    0x08=bit 3
    0x10=bit 4
    0x20=bit 5
    0x30=bit 6
    0x40=bit 7
    0x100=bit 8 BUT(!) then you have to use FSControl Togglebits Word!
    0x200=bit 9 ..
    and so on

    Quote Originally Posted by smartarze View Post
    Also when it comes to doing right landing light and nose light they are bits 8 - 11 how does that work?
    Two possible approaches: either use bit 8 in a FSControl ToggleBits Word at the same offset (as indicated above) OR (recommended):

    Note that bit 8 is the same as bit 8 - 8 = bit 0 of the next byte:

    So at byte offset 0x8B35 you take bit 0 (is the same as bit 8 of offset 0x8B34 as Word (a Word is 2 bytes))

    Bit 9 is of 0x8B34 (Word) is the same as bit 9-8=1 at offset 0x8B35 (as byte)

    Bit 10 of 0x8B34 (Word) is the same as bit 2 at offset 0x8B35 (byte)

    ...

    I cannot make it simpler

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. MCP 737 Toggle switches and keypress in FSX
    By JohnKnox in forum OpenCockpits General Discussion
    Replies: 4
    Last Post: 10-28-2009, 11:51 PM
  2. Ebay Toggle Switches?
    By autocadplease in forum I/O Interfacing Hardware and Software
    Replies: 13
    Last Post: 03-21-2009, 04:37 PM
  3. Toggle Switches
    By colaboy in forum General Builder Questions All Aircraft Types
    Replies: 6
    Last Post: 12-08-2008, 07:40 AM
  4. Toggle switches to momentary switches?
    By Patrik in forum Where to Start Building a Home Cockpit
    Replies: 5
    Last Post: 10-23-2007, 09:58 AM
  5. Latching toggle switches
    By Westozy in forum Where to Start Building a Home Cockpit
    Replies: 7
    Last Post: 09-01-2007, 06:24 PM