Page 12 of 74 FirstFirst ... 289101112131415162262 ... LastLast
Results 111 to 120 of 737
  1. #111
    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

    Sorry i donīt know. I never try to work with the analog output.
    Maybee look to the datasheet of the gauge there you have the values you need for the gauge.

  2. #112
    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 bought these so long ago, I can't remember what they were ie: amp or volt meters. They may be amp meters as putting a 1.5volt battery (even a flat one) across it makes the needle hit the other side with force.

    I may have to souce some new meter and redo the artwork inside them.

    Also, on compiling what I've coded, I assigned the fuel gauges BTP_A_OUT with CID 27 and RID 0, it compiles but then says in the DOS box that it is out of range and it should be 80 to 87. Is that right, as the assignments on the image of Rob's board says 00-07.

  3. #113
    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 had to peel the artwork off of one to see what it was and it's a VU meter which from what I understand is of no use. (unless it is possible to rewind the coil to make it a voltmeter)

    Can you give me a general idea of the calculation anyway. You know, what it should look like after the :

    switch cbPwmgauges (int oid, int val, double dval) line.

    Thanks. I'll have to see what I can work out with these panel meters.

  4. #114
    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

    Stefan,

    Wondering if you can point me in the right direction.

    I am coding in the oil pressure gauge offset 0x3B60 which is a FLOAT64

    In FSInterrogate, readings go from 0 at engine off up to 6000 at full rpm so I would estimate that it would go to 10000 if there was an overpressure.

    Have used the calibrate function:

    void cbVoltmeters (int oid, int val, double dval)
    {
    switch (oid)
    {
    case FS_GENERALENGINE1OILPRESSURE:
    {
    static CALTAB OILPRESSUREGauge[] = {
    (0,0),(6000,255)
    };
    val = Calibrate (val, OILPRESSUREGauge,2);
    FsbusWrite (C_OILPRESSURE, val);
    }
    break;

    When I start the engine the needle has full deflection and when I stop the engine, as soon as the oil pressure hits 0 in interrogate, the needle drops to zero.

    I have tried all combinations of numbers to get it to show some kind of parity with the gauge in the software, but it seem either off or full on.
    I have also tried more numbers in the table, not just 2.

    Any help you can offer.

    Thanks
    David

  5. #115
    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.
    to check the FSUIPC Output, put a print funktion over the calibration.

    case FS_GENERALENGINE1OILPRESSURE:
    {
    printf("GENERALENGINE1OILPRESSURE %d%%\n", val);
    static CALTAB OILPRESSUREGauge[] = {
    (0,0),(6000,255)
    };
    val = Calibrate (val, OILPRESSUREGauge,2);
    FsbusWrite (C_OILPRESSURE, val);
    }
    break;

    Stefan

  6. #116
    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

    The values are the same as what I got from FSInterrogate.

    0 for no pressure
    3000 plus when engine starts.

    But as I said before, When I start the engine the needle moves to full deflection and when I stop the engine, as soon as the oil pressure winds down and hits 0 in interrogate, the needle drops to zero.

    It stays fully deflected the moment the pressure moves above 0.

    Am I missing something in the calculation. Is this how you would have done it?

    I have full deflection from 0 to 100% deflection using the Analog out in FSAdmin, so I shouldn't have to use a different resistor? I am still using the 5k6 resisitor as in the manual.

    I had a go at doing the left fuel gauge, and at 0% in the tank, the needle dropped to 0, anything above 0 and it's fully deflected at 100%

    Hope that makes sense.

    Thanks
    David

  7. #117
    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

    That dosenīt look at an analog out.
    I would make a small programm with a Poti and a Analog Out and put the value of the poti to the analog out. There you can see output signal of the analog output on a definied input.

    Stefan

  8. #118
    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

    wow, that may be beyond my ability. I am only just beginning to understand a little of C++.

  9. #119
    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

    If anyone else wants to help and contribute to this thread, I am more than willing to share to code for my Cessna cockpit.

    I only have mine built due to other peoples input.

    So this will be a complete Cessna package when it's complete.

  10. #120
    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
    wow, that may be beyond my ability. I am only just beginning to understand a little of C++.
    He, that is more than easy. It is only C.

    case C_Testpoti:
    FsbusWrite(C_Tastanalogout, val);
    break;



    Stefan

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