Page 67 of 74 FirstFirst ... 1757636465666768697071 ... LastLast
Results 661 to 670 of 737
  1. #661
    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

    Yes that ios marked in the Manual and you compiler also give you a message.

  2. #662
    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,

    Has Dirk made any changes to the version I have as a final release?

    Thanks
    David

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

    Yes but only Bug fixes.

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

    So I should I download the version from the website and replace the test V3.

    Thanks

  5. #665
    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īs right.

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

    Quote Originally Posted by sgaert View Post
    Hehe, new Idea, try it self.
    Here is my Idea.


    have fun,

    Stefan
    Hi Stefan,

    Had any more thoughts about how to do this?

    How would I define dist1, dist2 and dist3?

    Thanks
    David

  7. #667
    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 is so easy.
    The Problem isnīt the Programming, it is normal mathamatics.
    You need to find the right formula, use pen and paper and calculate situations/movings. The very last stepp is to translate that in C++.

    dist1-3 are normal int.

    //dist3
    if (ADF1RelDataSave > 32768 )
    {
    dist3 = 65536 - ADF1RelDataSave;
    }
    else
    {
    dist3 == ADF1RelDataSave;
    }

    //dist2
    if (ADF1RelDataIn > 32768 )
    {
    dist2 = 65536 - ADF1RelDataIn;
    }
    else
    {
    dist2 == ADF1RelDataIn;
    }

    //dist1
    if (ADF1RelDataDif > 0)
    {
    dist1 == ADF1RelDataDif;
    }
    else
    {
    dist1 = ADF1RelDataSave - ADF1RelDataIn;
    }

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

    So for example if dist2 and dist3 are say 30 degrees either side of zero, work out how many steps are in that 30 degrees, or what the val data would be at that 30 degree point.

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

    First degreeīs are not relevant only the fsuipc input data!! 0-65536
    The Problem is that the Stepper can turn to right and left without a limit.
    But the data has only one turn.
    Now you need a calculation the how mayīs turn that is.
    If you donīt do that the needle goes from 60000 to 10000 in the left way but the rightway is the shortest and the real one.
    Now find the formula to check the shortest way and if nesessary add or subtrackt a full circle from the stepper output.

    Sample: 1500 data in in the 4 turn, go to 55000 in the 3 turn, what is the stepper output.
    try to find the formular.

  10. #670
    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've just been sitting here reading what you just wrote, then looking at the piece of code you have written, then re-reading what you have just written. I think my head is hurting

    So I understand that we are working with the val output of the offset.

    I have no idea where to begin to work a formula out like that. I understand the principle of what needs to be achieved, but really no idea.

    You mentioned before about a counter to count the number of 360 deg revolutions. From what you have just said, this still needs to be in the code in order to go from 1500 data in in the 4 turn, go to 55000 in the 3 turn.

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