Page 53 of 74 FirstFirst ... 34349505152535455565763 ... LastLast
Results 521 to 530 of 737
  1. #521
    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

    On friday we will program that gauge together, via Skype and maybe Teamviewer.

    Stefan

  2. #522
    Have CNC-----will build.
    Join Date
    Oct 2009
    Location
    Leesburg, Florida
    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

    Re: Progamming help with FSBus dll

    Thanks for the help guys, I am sure that once I get one running, it will be much easier to get the others. I now have the idea that for every object made you need to have a .cpp and a .h file to get it to work. Am I supposed to have windows.h somewhere? I do not seem to have it. Probably have to download the windows sdk for Vista? Little by little I will get this going. But not on my own.

    Milt

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

    I now have the idea that for every object made you need to have a .cpp and a .h file to get it to work.
    That isn´t necessary, but it is a good way to cut the project in different parts. Sample: A Pedastel part contains a pedastal.cpp and .h file and so on.
    In your actual case i would prefer a gauge.cpp and .h file, that would contains all the different analog gauges, that you like to build.
    Am I supposed to have windows.h somewhere?
    That is a part of VisualStudio, you have that installed.

    Stefan

  4. #524
    Have CNC-----will build.
    Join Date
    Oct 2009
    Location
    Leesburg, Florida
    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

    Re: Progamming help with FSBus dll

    I am moving along slowly. I am now working on my attitude qauge. I am wondering what does 'FLT64' mean in the FSUIPC var. type? I have the gauge responding, but only to the point that on the pitch, it moves all the way up when it passes the center line going up and all of the way down when it passes the centerline going down. I see nothing in the FSBUSDLL manual about FLT64. So, yes, I am one again confused. Any help please.

    Milt

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

    It is called TP_I64 in FsBus.

  6. #526
    Have CNC-----will build.
    Join Date
    Oct 2009
    Location
    Leesburg, Florida
    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

    Re: Progamming help with FSBus dll

    I put TP_I64 in the proper place and it is still doing the same thing, full travel up, or full travel down, depending an whether I am ascending or descending. Obviously, this servo gauge can not be programmed the same way as my oil pressure gauge is.

    Milt

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

    Can you show us, the make of the FSObject and the case?

  8. #528
    Have CNC-----will build.
    Join Date
    Oct 2009
    Location
    Leesburg, Florida
    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

    Re: Progamming help with FSBus dll

    This is the FSBUS object as I have built it;

    MkFsbusObject(BTP_A_OUT, S_ATTITUDEPITCH, "",EventHandler, 27, 86);
    MkFsObject(FS_ATTITUDEPITCH, "", EventHandler, 0x2f70, 8, TP_I64, FS_normal);

    This is the case;
    switch(oid)
    {

    case FS_ATTITUDEPITCH:
    static CALTAB ATTITUDEPITCH[] = {{0,106},{16384,164}};
    FsbusWrite (S_ATTITUDEPITCH, Calibrate (val, ATTITUDEPITCH,2));

    I know that I am doing something wrong, but am unable to figure it out.

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

    Do you look to the offset with FSInterrogate2std for the min, max, and Zero position value?
    Also do one more data to the calltap for the Zero(middel) Position.

    Stefan

  10. #530
    Have CNC-----will build.
    Join Date
    Oct 2009
    Location
    Leesburg, Florida
    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

    Re: Progamming help with FSBus dll

    Got the offset from FSInterrogate and the min-max. Still did not work. I then used TP_DBL in place of the TP_I64 and it is now working. Took a few hours to figure out.

    Milt

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