Results 1 to 7 of 7
  1. #1
    150+ Forum Groupie verticallimit's Avatar
    Join Date
    Apr 2009
    Location
    Denmark, Sinding
    Posts
    230
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Unhappy This script driving me crazy

    Hi,
    Please a little bit help

    This script for Open cockpit is about to drive me crazy.
    This is the first attempt to manage Flight Director 1 and Flight Director 2.
    They work fine individually, but goes in and locks for each other, so that sometimes the FD1 toggle switch as to be toggled several times to switch in the software. then it works perfectly, but then the second toggle contact is blocked, so it must be toggled several times before it works.

    //********** FLIGHT DIRECTOR 1 **************

    VAR 1390, NAME CONTROLFD, Link FSUIPC_OUT, Offset $3110, Length 4
    VAR 1391, NAME FS_FD1, LINK FSUIPC_OUT, offset $3114, Length 4

    VAR 1392, name AP_FD1_SET, Link IOCARD_SW, Input 13, TYPE 1

    {
    &FS_FD1 = &AP_FD1_SET
    &CONTROLFD = 69651
    &CONTROLFD = DELAY 0 5
    }


    //********** TEST TEST TEST TEST TEST**************

    VAR 9380, NAME CONTROL, Link FSUIPC_OUT, Offset $3110, Length 4
    VAR 9381, NAME FS_PAR, LINK FSUIPC_OUT, offset $3114, Length 4

    VAR 9390, name FDL, Link IOCARD_SW, Input 14, TYPE 1
    {
    &FS_PAR = &FDL
    &CONTROL = 69652
    &CONTROL = DELAY 0 5
    }

    //********** TEST TEST TEST TEST TEST**************

    I have also tried to use the same variable 1390 and 1391 on both FD1 and FD2, but it gave the same result.

    If I can get this to work, I can manage all electrical switches in the cockpit in this way because I have all FSUIPC offset numbers

    ------------------------------------------------
    www.md80project.dk
    Sincerely,

    Claus


  2. #2
    500+ This must be a daytime job
    Join Date
    Jul 2013
    Posts
    948
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: This script driving me crazy

    Claus

    Are you sure that your coding for the switch type is correct ie TYPE 1 (one)? Latching switches ie toggles are TYPE I and momentary push button switches are TYPE P

    Regards

    David

  3. #3
    150+ Forum Groupie verticallimit's Avatar
    Join Date
    Apr 2009
    Location
    Denmark, Sinding
    Posts
    230
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: This script driving me crazy

    Quote Originally Posted by fordgt40 View Post
    Claus

    Are you sure that your coding for the switch type is correct ie TYPE 1 (one)? Latching switches ie toggles are TYPE I and momentary push button switches are TYPE P

    Regards

    David
    Hi David

    The FD switch in the MD-80 is a latching switch.
    Sincerely,

    Claus


  4. #4
    500+ This must be a daytime job
    Join Date
    Jul 2013
    Posts
    948
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: This script driving me crazy

    Claus

    Have you tried using TYPE I (letter I) instead of TYPE 1 (number one)?

    Edit - Claus, I have just checked my sioc files and I have used TYPE T for toggle switches. Sorry for any confusion, but when faced with the problems that you mentioned, I have often found that the solution lies with the TYPE function

    Regards

    David

  5. #5
    150+ Forum Groupie verticallimit's Avatar
    Join Date
    Apr 2009
    Location
    Denmark, Sinding
    Posts
    230
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: This script driving me crazy

    Hi David

    Thanks for the support.
    Have now tried with T and I, and i did not help. I stil have the same problem.
    Sincerely,

    Claus


  6. #6
    500+ This must be a daytime job
    Join Date
    Jul 2013
    Posts
    948
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: This script driving me crazy

    Claus

    Sorry that it did not work! I am not clear about what you are trying to achieve with the script, but suggest that you use the log function within IOCPCOSOLE to see what is happening and that should help you solve it

    Regards

    David

  7. #7
    150+ Forum Groupie verticallimit's Avatar
    Join Date
    Apr 2009
    Location
    Denmark, Sinding
    Posts
    230
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Smile Re: This script driving me crazy

    Then I succeed. it helps to make some other tasks in between, and come back to it with a different perspective.
    The script is now as follows

    VAR 9381, LINK FSUIPC_OUT, offset $3114, Length 4
    Var 9380, NAME IN10, Link IOCARD_SW, Input 10, TYPE T
    {
    V9381 = &IN10
    &CONTROL = 69831
    &CONTROL = DELAY 0 15
    }

    VAR 9392, LINK FSUIPC_OUT, offset $3114, Length 4
    Var 9391, NAME IN0, Link IOCARD_SW, Input 0, TYPE T
    {
    V9392 = &IN0
    &CONTROL = 69843
    &CONTROL = DELAY 0 15
    }

    Var 9379, NAME CONTROL, Link FSUIPC_OUT, Offset $3110, Length 4


    But another question, can I get data out of fsuipc offset 3110 / 3114, or can only write to these offsets I have tried but without success.

    _______________________
    http://www.md80project.dk
    Sincerely,

    Claus


Similar Threads

  1. This is crazy as heck.....
    By AlexJ in forum Pilots Lounge - Let your Hair down
    Replies: 7
    Last Post: 11-21-2010, 04:50 PM
  2. Is this crazy or what...?
    By Michael Carter in forum Computer Hardware Setup
    Replies: 8
    Last Post: 10-05-2008, 04:46 AM
  3. Crazy Fsx Situation
    By warvet in forum General Builder Questions All Aircraft Types
    Replies: 0
    Last Post: 04-20-2008, 10:10 AM
  4. Spooling up delay driving me mad!
    By David Rogers in forum PM General Q & A
    Replies: 11
    Last Post: 11-13-2007, 05:55 PM
  5. Am i going crazy!!!????
    By bindook in forum I/O Interfacing Hardware and Software
    Replies: 9
    Last Post: 03-22-2007, 07:20 AM

Tags for this Thread