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
Printable View
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
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
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
Guys
That was the easy part - wait till you start programming in SIOC:roll:
Only joking;)
David
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
Wow!!! :mrgreen:
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':-D
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
Got It... Thanks for clearing that up for me.
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
}
Check out this site as well,
http://www.baron58.com/Servo_Calc.htm