Page 4 of 74 FirstFirst 123456781454 ... LastLast
Results 31 to 40 of 737
  1. #31
    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

    I have read the complet thread again, what versin of the DLL you have?
    Please give me the date and time of the fsbus.dll file.
    At post 8 you write V2 Code.
    Than it isnt the MakeFsObject Funktion, it is MkFsObject.

    Regards,
    Stefan

  2. #32
    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

    Hi Stefan,

    Thanks for your help again, IAS is now working. 0 knots is 0 knots but my physical gauge is progressively behind the onscreen IAS.

    I have changed the x = x < 40 ? 40 : x;
    to
    x = x < 10 ? 10 : x;
    and this seems to have aligned the 0 knots point.
    Where else would I adjust to increase the equation would I alter to change the rate or would I be better off figuring out how to use the Calibrate function.

    This is what I have now:
    if (IAS != (val/12)
    {
    IAS = val / 128;
    }
    x = 000 + IAS;
    x = x < 10 ? 10 : x;
    FsbusWrite(C_IASSERVO, x);

    About the version dll that I have.
    It's a long story but here goes.
    I had been trying to download the dll version from Dirks site for sometime and I was having trouble downloading the FSAdmin tool - the site said 1.8mb but when it downloaded, it was only 150kb (when I tried to execute it, it would give and error).

    I had left messages on Avsim, FSMagazine, even email Norbert Bosch (who I know uses FSBus) for help with this problem, with no answer.
    I then contacted Rob and he said to leave it with him and he would contact Dirk.
    About a week later Rob then offered me the beta version of V2 to test and get used to before the final release in mid June under strict conditions that it was only for my use and not to be shared (as I have done).

    I hope this doesn't cause any problems for anyone as this is only for me.

    Thanks again.
    David

  3. #33
    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

    hi,
    that ist ok. i磎 also a betatester.
    In that case you can try the calibrate funktion for your RPM Gauge.
    Maybe it is interessting for you, Rob has made some code for an other group build. Now he has 16 groups with 256 objekts. If you what, i give you the code.
    We don磘 share the dll or lib file only the own code and that is ok.

    Regards,
    Stefan

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

    Hi Stefan,

    Is that Robs code: RVDB737NG. If it is, he has given it to me to help me get my head around C++ and FSBus dll.

    If it is not, I would be grateful to view more of his code as what I have now has helped enormously.

    I must also say, that without your assistance, I may have given this up as too hard, but it is great to see my gauges coming to life and hopefully soon, my whole cockpit.

    I'm quite ok with how the RPM gauge is working. It is very acurate to the screen gauge.

    Just probably need to use it for the IAS (so far).
    I have gone through the code Rob has given me and I can't see a Calibrate Function in it to see how it is correctly put in the file.


    Could you give me some pointers for putting the calibrate function into the gauges.cpp file.

    Do I replace:

    case FS_IAS:
    if
    (IAS != (val/12
    {
    IAS = val / 128;
    }
    x = 250 - IAS;
    x = x < 40 ? 40 : x;
    FsbusWrite(C_IASSERVO, x);
    break
    ;
    }
    }



    with

    case FS_FLAPSINDICATORLEFT:
    {
    static CALTAB FLAPIndicator[] = {
    {100,20},{420,63},{830,95},{2050,115},{4100,134},{6150,148},{10250,162},{12290,180},{16390,200}
    };
    val = Calibrate (val, FLAPIndicator,9);
    FsbusWrite (CAO_Flaps, val);
    }
    break;


    and what changes do I need to make:
    I know FS_IAS: at the start
    but what do I replace FLAPIndicator with - IASIndicator and if I do, do I need to declare IASIndicator.
    What do I replace CAO_Flaps with?

    Thanks for the help.
    David

  5. #35
    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

    hi,
    the FLAPIndicator is only the lable from the array.
    You can chouse what you want.
    Tha Calibrate funktion work like that:
    x = Calibrate (a,b,c);

    x are the back value of the funktion
    a is the input value
    b is the Label of used Array
    c is how many records in used Array

    What do I replace CAO_Flaps with?
    With your C_IASSERVO.

    Yes i mean Robs code. For me personal is the C++ more easy than the CDK. Why? The CDK isn磘 a logic programming envioment and it is so slow.

    Regards,
    Stefan

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

    Wow, that was really easy to do.
    I now have an acurate IAS.
    Humm, which gauge to do next!!!

    Thank you again.

    David

  7. #37
    150+ Forum Groupie
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    201
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Hi David and Stefan,

    I have a question about the smoothness of the needle.
    With the version 1 of the dll I've tried to make a 737 flap gauge, but the needle moves very quick between the Flap positions.
    Is this better with the second version and can you adjust the needle speed?


    Best regards

    Jan Geurtsen

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

    Hi Jan,
    at my post #27 you can see my V2 Code from the flaps.
    Her are a movie of the movment.
    Flapgauge
    The first Part is also quick but this is the fast moveing between 0 and 5 degrees.

    regards,
    Stefan

  9. #39
    150+ Forum Groupie
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    201
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Hi Stefan,

    Yes,that's look better! Is it your choice, to move the needle quick to the flap 5 position?


    Best regards

    Jan Geurtsen.

  10. #40
    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

    HI,
    no that is FSX. But that are only 5 degrees, that will go fast.

    Regard,
    Stefan

Page 4 of 74 FirstFirst 123456781454 ... LastLast

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