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
Bill
You say the servo card is not responding. To what? is the pitch function ok but the roll is not? Have you tried iocpconsole and the log function to see what is or is not happening - eg is the resultant value of L1 sent to the servo within its movement range?
Regards
David
Hi David,
Nothing was working. Found the problem by comparing the original pitch file to my new file. I had put in the lines;
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
It should have been:
Var 0001, Link USB_SERVOS, Output 1, PosL 1, PosC 511, PosR 1023, Type 1 // Pitch
Var 0002, Link USB_SERVOS, Output 2, PosL 1, PosC 511, PosR 1023, Type 1 // Bank
Sure wish there was a good manual for this stuff.
Bill
Hi Rockeyes,yeah ive just sorted that out myself by comparing the data scricpt and realised the difference,what a 'wally' for not seeing that!!
Who said the Scotts (Badbill65) haven't got a sense of humour:lol:.
I took my eye off the ball as to speak and just burnt out a servo:-(
The board is OK but let that be a warning to all the new guys who might be reading this. WATCH FOR SERVO STALL !!!!!!
Servo stall!! - tell me! - been there got the T shirt:)
Well you have troubleshot your first programme. Tell me what SIOC manuals/guides you have managed to get and I will send you any extra ones that I have
Regards
David
That’s a kind offer.
I’m using:
1,OPENCOCKPITS IOCcard USBSERVOS INSTALLATION AND USER’S MANUAL V1
2, IOCards Step by step Part2:SIOC language V?
Bill
Thats why you must set-up (your) servo in (your) installation, by setting the left, center, and right after determining these by using the console to manually enter the steps to determine the beginning, middle, and end positions of your servo. All are different even with-in brands!.
Bill
Check your home email account
Regards
David
I apologise for the poor quality, but thought I should show a result of this post.
Got lighting to sort out and some software tweeking still todo.
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/HKkS6yjA1tk&hl=en_GB&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/HKkS6yjA1tk&hl=en_GB&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
Bill
Well done, on to the next challenge then:)
David
The next challenge !
Whilst I work on my simultaneous equations for calibrating the instrument (Baron58 link), I am wondering how to reverse the servo rotation through the software. The problem, due to the servo fit and gearing used the roll is working in the wrong direction :-?
Offhand, I would reverse the values on the servo sioc command line for posL to 1023 and posR to 1
Stand to be corrected though:) Watch the servo for stall, though I doubt this would happen as I think that the servo does not know left from right - it is just the range of values
Sorry for the late reply, this volcanic cloud amongst other things has been keeping me busy.
I also thought that reversing the values might do it, but unfortunately not.
As the servo is so small, a modification to its standard direction of travel by swapping over its motor and pot wires was not an option. I've settled for an in-line servo reverser from the local model shop which at the moment seems to be working fine, although an expensive solution.
Bill
Glad you got it fixed! Next time perhaps try tinkering with the code - it should be cheaper. In the programme calcs,
try multiplying with negative numbers or take away the answer from 1024. In the latter case a previous value of 1024 becomes 0 and vice versa. There is a simple coding answer, but you need to get your feet wet:)
David
So there is the gauntlet being firmly laid down :lol:
No Gain without Pain;)
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/VOcxq1HXV6w&hl=en_GB&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/VOcxq1HXV6w&hl=en_GB&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
Bill
Take a bow and open a can of beer! Well done sir, it looks great - now onto greater things:p
David
Nice Job!!! You may now advance to the next level!
Hello friend!
When the windows does not recognize the usb servo, it lights the LED? I rode a board and that did not work. I'm thinking it's the hex file.