This code is nearly finished, but I need a little help. Pls see video
Sorry the code is so clumsy but I am new at this and this is the result of some weeks work.
The code for the relay operation which shows the lags and the little click on the return of the joystick is found beginning at line 416. This is the full joystick movement.
The trim tab code is at 448. I can live with the problems but it should be fixable if someone can maybe take a look at it. It is when the full joystick is on its way back that the relay momentarily triggers. As I say, for what this does it will be fine, but it would nice to clean it up.
Whatever fixes this will fix the others and I will happily apply any suggestions
The code for the 5 second adjustments when running the diveroutine is found at lines 314 to 340. I have applied this from code provided by johnwasser on this forum. (Thankyou!) I have added my adjusted code (also attached) and you can see how I have adapted it to work on the sub. The code works just fine on its own, but when added to the ‘whole’ the relays light dimly and will not trigger. These same relays trigger very well in the code above.
Once this is going I wouldn’t mind also asking for someone to review it. It is pretty clumsy code!
subsketchlatest10.ino (17.7 KB)
_10_SEC_TIME_adjust.ino (915 Bytes)