Page 5 of 8 FirstFirst 12345678 LastLast
Results 41 to 50 of 72
  1. #41
    25+ Posting Member Rockeyes's Avatar
    Join Date
    Apr 2010
    Location
    Nr Royston UK
    Posts
    58
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Opencockpits USB servo card

    Well is there anything I can do for you David just shout. I will PM my email address. As for your set-up have you any pictures posted?

    Bill

  2. #42
    500+ This must be a daytime job



    Join Date
    Jul 2013
    Posts
    917
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Opencockpits USB servo card

    Bill

    Ian Sissons site hosts pictures of my build, though does not yet include the overhead or completed pedestal. The link is below and Ian`s site is an Aladdins cave of tips, info etc - a must!

    http://www.737ng.co.uk/djb/index.htm

    David

  3. #43
    10+ Posting Member


    badbill65's Avatar
    Join Date
    Apr 2010
    Location
    UK
    Posts
    18
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Opencockpits USB servo card

    Hi Dave,myself and Rockeyes have been at it all morning and success it works THANKS TO YOURSELF for your time and patiance we now on the right path,the first thing i intend to do is to consolidate all the information and get a good working understanding of SIOC before continuing,plus have a good look through your site.So THANKS again for all your help and hope to be in touch again soon.
    THANKYOU DAVE
    Regards
    Billy

  4. #44
    500+ This must be a daytime job



    Join Date
    Jul 2013
    Posts
    917
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Opencockpits USB servo card

    Guys

    That was the easy part - wait till you start programming in SIOC

    Only joking

    David

  5. #45
    25+ Posting Member Rockeyes's Avatar
    Join Date
    Apr 2010
    Location
    Nr Royston UK
    Posts
    58
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Opencockpits USB servo card

    Whilst my head is still swimming around, I was wondering.

    My current SIOC file has the Pitch.txt file in it and the CONFIG_FILE.\sioc.ssi entry changed to CONFIG_FILE=.\pitch.txt

    If I wanted to add say a roll servo (attitude instrument) to the same card.

    1,What would be the code be?
    2, Would I just save that as a separate text file (Roll)?
    3, How would SIOC launch the file?

    I'm sure if I can just get my head around this there will be no stopping.

    Going back now to have a good look at that link you sent.

    Bill

  6. #46
    25+ Posting Member Rockeyes's Avatar
    Join Date
    Apr 2010
    Location
    Nr Royston UK
    Posts
    58
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Opencockpits USB servo card

    Wow!!!

    http://www.737ng.co.uk/djb/index.htm

    What can I say to that other than your work is truly inspiring.

    Bill

    PS The wife is worried that 'We are many'

  7. #47
    500+ This must be a daytime job



    Join Date
    Jul 2013
    Posts
    917
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Opencockpits USB servo card

    Bill

    Thanks for the feedback. Re your questions

    1) I cannot find the code for the roll function, but it will be out there somewhere. Now is the time to start learning SIOC - dabbling and getting your feet wet is the only way.Picking up bits of code will not work for you as all machines, references and programming abilities are different and you will need to amend the code. If you do not understand how to basically programme SIOC then you will not advance very far.
    2) If you only have one servo then save your roll code in a separate .txt file. If you are getting another servo then just add the code to the existing pitch.txt file or rename it to Pitch and Roll.txt
    3) SIOC will always load the filename referenced in the sioc.ini CONFIG_FILE line

    Regards

    David

  8. #48
    25+ Posting Member Rockeyes's Avatar
    Join Date
    Apr 2010
    Location
    Nr Royston UK
    Posts
    58
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Opencockpits USB servo card

    Got It... Thanks for clearing that up for me.

  9. #49
    25+ Posting Member Rockeyes's Avatar
    Join Date
    Apr 2010
    Location
    Nr Royston UK
    Posts
    58
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Opencockpits USB servo card

    Having got the pitch working with the USB card with a great deal of help, the next step is to combine it with roll. However the servo card is not responding. Can anyone see a mistake?

    The SIOC.INI file line has been changed to reflect the new program to CONFIG_FILE=.\bankservo.txt

    The script for the file is:

    // * FileName : bankservo.txt



    Var 0000, Value 0 // Initialization
    {
    V0001 = 511 // All servo-motors to center
    V0002 = 511 // All servo-motors to center
    }

    Var 0001, Link IOCARD_SERVO, Output 1, PosL 1, PosC 511, PosR 1023, Type 1 // Pitch

    Var 0002, Link IOCARD_SERVO, Output 2, PosL 1, PosC 511, PosR 1023, Type 1 // Bank

    Var 0010, Link FSUIPC_IN, Offset $0578, Length 4 // PITCH, *360/(65536*65536) conversion
    {
    L0 = V0010 * 8.38E-008 // convert to angle
    IF L0 > 25 // Limit to a 25 degree max
    {
    L0 = 25
    }
    IF L0 < -25 // Limit to a -25 degree max
    {
    L0 = -25
    }
    L1 = L0 * 20.32 // Calculate degrees for servo
    V0001 = L1 + 511
    }

    Var 0020, Link FSUIPC_IN, Offset $057C, Length 4 // BANK, *360/(65536*65536) conversion
    {
    L0 = V0020 * 8.38E-008 // Convert to angle
    IF L0 > 30 // Limit to a 30 degrees
    {
    L0 = 30
    }
    IF L0 < -30 // Limit to a -30 degrees
    {
    L0 = -30
    }
    L1 = L0 * 20.32 // Calculate degrees for servo
    V0002 = L1 + 511
    }

  10. #50
    500+ This must be a daytime job 737NUT's Avatar
    Join Date
    Feb 2006
    Location
    Indianapolis, IN
    Posts
    761
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Opencockpits USB servo card

    Check out this site as well,

    http://www.baron58.com/Servo_Calc.htm

Page 5 of 8 FirstFirst 12345678 LastLast

Similar Threads

  1. OpenCockpits Servo Controller Board (with 2 x servos)
    By cjellwood in forum Off Site Articles For Sale
    Replies: 0
    Last Post: 09-11-2010, 08:36 AM
  2. Servo Motor Card from Opencockpits
    By Oter3 in forum OpenCockpits General Discussion
    Replies: 2
    Last Post: 08-02-2009, 08:42 PM
  3. Servo motor card...interesting
    By barkay in forum OpenCockpits General Discussion
    Replies: 0
    Last Post: 05-25-2009, 01:51 AM
  4. How many steps does the servo card do?
    By 737NUT in forum Phidgets & Cockpit Simulator Builder
    Replies: 3
    Last Post: 05-13-2008, 09:24 PM