Page 16 of 74 FirstFirst ... 61213141516171819202666 ... LastLast
Results 151 to 160 of 737
  1. #151
    300+ Forum Addict
    Join Date
    Feb 2008
    Location
    Krefeld, Germany
    Posts
    318
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Progamming help with FSBus dll

    Quote Originally Posted by RobiD View Post
    Does that mean you can't get it to work with the C++ coding?
    Right!

    Quote Originally Posted by RobiD View Post
    Has Rob has success in programming the boards in C++.
    I dont know, nobody give me an arnswer.

    Stefan

  2. #152
    300+ Forum Addict RobiD's Avatar
    Join Date
    Sep 2007
    Location
    Gold Coast, Australia
    Posts
    430
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Progamming help with FSBus dll

    Hi Stefan,

    This will probably sound like a silly question, but here goes.

    I have programmed in the Inner, middle and outer marker lights (IMO lights).

    I want to test them, but I can't get the IMO lights to work in fsx (not the programmed ones, but the actual ones on the screen). I have tried many different airports, approached from at least 4nm out to get the outer marker, but they just don't work.

    I have also tried with the VOR frequency dialled in for that specific airport but no go.

    I am missing something that makes these lights work.

    I have flown so many times and these lights have worked so many times before but when I want them to light up so I can test my coding, nothing.

    Appreciate your input on this.

    David

  3. Thanks sgaert thanked for this post
  4. #153
    300+ Forum Addict
    Join Date
    Feb 2008
    Location
    Krefeld, Germany
    Posts
    318
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Progamming help with FSBus dll

    Quote Originally Posted by RobiD View Post
    I want to test them, but I can't get the IMO lights to work in fsx (not the programmed ones, but the actual ones on the screen). I
    Do i understand that right, FSX IMO Lights do not work?
    Stefan

  5. #154
    300+ Forum Addict RobiD's Avatar
    Join Date
    Sep 2007
    Location
    Gold Coast, Australia
    Posts
    430
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Progamming help with FSBus dll

    I can't say that they don't work, but I am probably doing something wrong on approach or I have a setting wrong or have not set something.

    I thought they worked all the time on approach whether it's an ILS, vor, vfr etc.

  6. #155
    300+ Forum Addict RobiD's Avatar
    Join Date
    Sep 2007
    Location
    Gold Coast, Australia
    Posts
    430
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Progamming help with FSBus dll

    I can get the lights to light up in the USA. Dallas International.

    The IMO lights illuminate but now that I can test the lights, I'm not getting my led's lighting up.

    I've tried a variety of coding to see if it works but I'm not having any luck.

    Here's what I have. I thought it should be as simple as the Inner and Middle are coded so then I tried adding the variable to the Outer but that didn't work either.

    Tested the leds in FSAdmin and they work.

    I know I'm missing something simple, hope you can point it out to me.

    (with the outer marker, I have the static int outermarker = 0; at the top of the page)

    Code:
     
    void cbIndicatorlights (int oid, int val, double dval)
    {
    switch (oid)
    {
    case FS_INNERMARKER:
    FsbusWrite (C_LEDINNERMARKER, val);
    break;
    case FS_MIDDLEMARKER:
    FsbusWrite (C_LEDMIDDLEMARKER, val);
    break;
    case FS_OUTERMARKER:
    if (outermarker == 0)
    {
    FsbusWrite (FS_OUTERMARKER, 0);
    }
    else (outermarker == 1);
    {
    FsbusWrite (FS_OUTERMARKER, 1);
    }
    break;

  7. #156
    300+ Forum Addict
    Join Date
    Feb 2008
    Location
    Krefeld, Germany
    Posts
    318
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Progamming help with FSBus dll

    Hi,
    this type is the right solution.

    case FS_INNERMARKER:
    FsbusWrite (C_LEDINNERMARKER, val);
    break;

    Your outermarker code can´t work.
    The variable "outermarker" has only the value 0 from greation.
    you can write val into outermarker than is everything ok, but that is all code for nothing.

    What a polling time you use for this objekts?
    I would use FS_QUICK.

    Stefan

  8. #157
    300+ Forum Addict RobiD's Avatar
    Join Date
    Sep 2007
    Location
    Gold Coast, Australia
    Posts
    430
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Progamming help with FSBus dll

    I'm using normal polling time. I will change it to quick, get rid of the pointless code and try again.

    I only tried the extra code as the led's were not working.

    Do I need to define val?

    Thanks

  9. #158
    300+ Forum Addict
    Join Date
    Feb 2008
    Location
    Krefeld, Germany
    Posts
    318
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Progamming help with FSBus dll

    no, val is define wit "void cbIndicatorlights (int oid, int val, double dval)".

  10. #159
    300+ Forum Addict RobiD's Avatar
    Join Date
    Sep 2007
    Location
    Gold Coast, Australia
    Posts
    430
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Progamming help with FSBus dll

    Found my error, I didn't declare cbIndicatorlightsBuildObject in cockpit.cpp

    Did that, now I have an error on compiling in the dos window:

    FSBUS DLL:
    102 is not an fsbus object

    any ideas what that means?

  11. #160
    300+ Forum Addict
    Join Date
    Feb 2008
    Location
    Krefeld, Germany
    Posts
    318
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Progamming help with FSBus dll

    an error with your OID define on object 102.

Similar Threads

  1. Fsbus CDK
    By flyandre in forum General Builder Questions All Aircraft Types
    Replies: 4
    Last Post: 12-27-2014, 12:58 PM
  2. Need Help Getting My FSBUS NG I/O Going Again..
    By JBRoberts in forum I/O Interfacing Hardware and Software
    Replies: 14
    Last Post: 03-21-2010, 01:38 PM
  3. Fsbus ng io
    By Davral in forum I/O Interfacing Hardware and Software
    Replies: 0
    Last Post: 01-10-2009, 10:38 PM
  4. Fsbus 2.4.3
    By Anderson/SBSP in forum I/O Interfacing Hardware and Software
    Replies: 9
    Last Post: 11-30-2008, 04:25 PM
  5. Help FSBUS
    By cesarfsim in forum I/O Interfacing Hardware and Software
    Replies: 2
    Last Post: 10-26-2008, 02:23 PM

Tags for this Thread