Hey guys, I accept the principles of what you are saying, but after researching all the links given I can't see where to even begin. I have done PC programming before, mainly BASIC, Fortran & Assembler, but even 'simple' tasks like noughts and crosses can take a huge amount of time to get working. I have already listed out my desired parameters of operation, to which I will add one more. For any realistic operation you have to train turrets up to 135 degrees each side otherwise it will merely look like two separate manual control systems for fore and aft facing guns. There will be a huge number of embedded conditional loops with slowing, stop and start somewhere in the centre.
ie:
Get GPS value
Get desired bearing value
Calculate relative angle
Can this gun achieve this relative angle, if so initiate start loop.
Is relative bearing at least 6' for start plus stop loops?
Run slow training.
check relative bearing difference is still within current range
if bearing difference is within, say 3' of optimum start slow down loop
check relative bearing difference is still within current range
Run slow training.
Check firing bearing has been achieved
If yes go to get GPS bearing.
Something like this? I particularly like the Arduino's with triple pins that you can plug servo leads straight into, otherwise a rats nest of wiring will be necessary. Arduino compatible GPS units can be bought for under £13.
My ideal would be two identical units, each with half the channels (0-4) forward facing turret capable, the others (5-9) for rear facing turrets. That way you can plug in servo leads according to turret orientation.