There's a chunk of the flowchart I wrote ages ago which handles "the direction you need the turret to turn" whether the desired target angle is positive or negative and whatever the current turret angle is. Might help you, or you may already have cracked it?
Andy
Hi Andy,
Thank you for your thoughtful offer – I cracked the stepper bit (-180/+180) many months ago, took me some while longer to finally get my head around the turrets facing the stern which I know is simple but my original approach was floored.
Bob and I installed part (half’ish) of the TARGET system into his HMS Agincourt for Mayhem 2018, but as such was not really anything to get excited about
After this point the project gathered dust for many months as other things took it’s place – it was only a few weeks back that I revisited the subject.
All the boat-based functionality is working even thought for the purists out there it’s only a “bench” model and may not translate into a working “ship” based solution -
really?
I have been working on some shore based functionality which hopefully may see the light of day at Model Boat Mayhem weekend at the end of May 2019
Part of that functionality is the shore based visual feedback system which in itself presents me some challenges not allowing the "pointer needles" to go through the 180 degree point and instead force them to go via zero degrees to get to the other side - this is mainly as it's not a language I am familiar with but all adds to the fun!!!
Regards
C-3PO