Results 41 to 50 of 72
Thread: Opencockpits USB servo card
-
05-05-2010, 08:53 AM #41
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
-
05-05-2010, 09:11 AM #42
- Join Date
- Jul 2013
- Posts
- 917
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
-
05-05-2010, 09:51 AM #43
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
-
05-05-2010, 09:54 AM #44
- Join Date
- Jul 2013
- Posts
- 917
Re: Opencockpits USB servo card
Guys
That was the easy part - wait till you start programming in SIOC
Only joking
David
-
05-05-2010, 10:39 AM #45
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
-
05-05-2010, 11:17 AM #46
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'
-
05-05-2010, 12:23 PM #47
- Join Date
- Jul 2013
- Posts
- 917
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
-
05-05-2010, 02:23 PM #48
Re: Opencockpits USB servo card
Got It... Thanks for clearing that up for me.
-
05-12-2010, 06:46 AM #49
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
}
-
05-12-2010, 08:23 AM #50
Re: Opencockpits USB servo card
Check out this site as well,
http://www.baron58.com/Servo_Calc.htm
Similar Threads
-
OpenCockpits Servo Controller Board (with 2 x servos)
By cjellwood in forum Off Site Articles For SaleReplies: 0Last Post: 09-11-2010, 08:36 AM -
Servo Motor Card from Opencockpits
By Oter3 in forum OpenCockpits General DiscussionReplies: 2Last Post: 08-02-2009, 08:42 PM -
Servo motor card...interesting
By barkay in forum OpenCockpits General DiscussionReplies: 0Last Post: 05-25-2009, 01:51 AM -
How many steps does the servo card do?
By 737NUT in forum Phidgets & Cockpit Simulator BuilderReplies: 3Last Post: 05-13-2008, 09:24 PM
Candid connections: Platform for casual relationships Live Women Prime Сasual Dating
Super Сasual Dating - Genuine...