Page 7 of 74 FirstFirst ... 345678910111757 ... LastLast
Results 61 to 70 of 737
  1. #61
    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

    Yes i know that problem.
    Erase the complet Controller with PonyProg and write them new.

    Regards,
    Stefan

  2. Thanks RobiD thanked for this post
  3. #62
    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

    Great. Fixed problem.

    Now to start on the Glideslope indicator, then the Attitude indicator which is servo for pitch and stepper for bank.

    David

  4. #63
    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,
    sounds good. Why do you use a stepper for bank?
    I use also a Servo.

    regards,
    Stefan

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

    It seemed like a good idea at the time because I thought it could move continuously around but I forgot about the wires for the pitch servo.

    I could still change it I guess. It would mean making modification only to the very rear deck (I've used Mike's Flightdeck design).

  6. #65
    75+ Posting Member


    dvincent's Avatar
    Join Date
    Apr 2008
    Location
    Vlissingen, The Netherlands
    Posts
    120
    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 all,

    in case of problems with FsBus, you can take a look on the website of Rob van Dijk. Together with Dirk Anderseck, he developped the software + PCB's.

    http://www.rvdijk.nl/

    Greetz,

    Dirk

  7. #66
    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,

    Just when I thought I was on a roll of just adding gauges and them working, I've hit another snag. Hope you can help.

    The problem is with the Glideslope and Localiser needles.

    The servos are fine, all set up in FSAdmin.

    The code compiles without error.

    I am getting no response from them when I'm in FSX.

    Here is the code. ***I have left out unneccessary code that we know works, this is just what I have added for this gauge.

    Thanks
    David

    gauges.h (this is the same as before as I'm declaring the objects in stdafx.h)


    #ifndef
    __GAUGES_H__
    #define __GAUGES_H__
    void cbGaugesBuildObjects();
    void cbGauges (int oid, int val, double dval);
    void BuildFsuipcObjects(void);
    #endif


    gauges.cpp


    MkFsbusObject (BTP_A_OUT,C_NAV1LOCSERVO,
    "Localiser Needle",cbGauges,25,83);
    MkFsbusObject (BTP_A_OUT,C_GLIDESLOPESERVO,
    "Glideslope Needle",cbGauges,25,84);

    MkFsObject(FS_NAV1LOCALISER,"Localiser needle",cbGauges, 0x0C48, 1, TP_I8, FS_NONE);
    MkFsObject(FS_NAV1GLIDESLOPE,
    "Glideslope Needle",cbGauges, 0x0C49, 1, TP_I8, FS_NONE);




    case FS_NAV1LOCALISER:
    {
    static CALTAB NAV1LOCALISERIndicator [] = {
    {-127,166},{0,89},{127,25}
    };
    val = Calibrate (val,NAV1LOCALISERIndicator,9);
    FsbusWrite (C_NAV1LOCSERVO, val);
    }
    break;
    case FS_NAV1GLIDESLOPE:
    {
    static CALTAB NAV1GLIDESLOPEIndicator [] = {
    {0,141},{118,50},{138,240}
    };
    val = Calibrate (val,NAV1GLIDESLOPEIndicator,9);
    FsbusWrite (C_GLIDESLOPESERVO, val);
    }
    break;



    stdafx.h


    #define
    FS_NAV1LOCALISER OID_GAUGES_GROUP +9
    #define C_NAV1LOCSERVO OID_GAUGES_GROUP +10
    #define FS_NAV1GLIDESLOPE OID_GAUGES_GROUP +11
    #define C_GLIDESLOPESERVO OID_GAUGES_GROUP +12




  8. #67
    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,
    as first 2 big errors, you dont have 9 records on array.
    Please typ
    val = Calibrate (val,XXXXX,3);
    XXXXX= your lable.

    As next, you must enable the FSUIPC polling.
    Dont type FS_NONE, you have to use NORMAL or QICK.

    Regards,
    Stefan

  9. #68
    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 future reference, the number at the end is the number of arrays you have in the table (val = Calibrate (val,XXXXX,3)

    I've made the changes you suggested but still no response from the servos.

    Any other thoughts.

    Do you want me to post the entire gauges.cpp, gauges.h and stdafx.h files?

    Thanks
    David

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

    gauges.cpp


    MkFsbusObject (BTP_A_OUT,C_NAV1LOCSERVO,"Localiser Needle",cbGauges,25,83);
    MkFsbusObject (BTP_A_OUT,C_GLIDESLOPESERVO,"Glideslope Needle",cbGauges,25,84);

    MkFsObject(FS_NAV1LOCALISER,"Localiser needle",cbGauges, 0x0C48, 1, TP_I8, FS_NORMAL);
    MkFsObject(FS_NAV1GLIDESLOPE,"Glideslope Needle",cbGauges, 0x0C49, 1, TP_I8, FS_NORMAL);




    case FS_NAV1LOCALISER:
    {
    static CALTAB NAV1LOCALISERIndicator [] = {
    {-127,166},{0,89},{127,25}
    };
    val = Calibrate (val,NAV1LOCALISERIndicator,3);
    FsbusWrite (C_NAV1LOCSERVO, val);
    }
    break;
    case FS_NAV1GLIDESLOPE:
    {
    static CALTAB NAV1GLIDESLOPEIndicator [] = {
    {0,141},{118,50},{138,240}
    };
    val = Calibrate (val,NAV1GLIDESLOPEIndicator,3);
    FsbusWrite (C_GLIDESLOPESERVO, val);
    }
    break;

  11. #70
    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

    Hummm, not sure what happened, I made the changes you suggested and nothing happened, then I fiddled a bit with the code but didn't really change anything, and now it works.

    Thanks as always for your help Stefan.

    Regards
    David

Page 7 of 74 FirstFirst ... 345678910111757 ... 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