I want it to have a fish finder to read the world around it and cameras, lights, pir sensors, and a gps. Is it possible to make it track it’s position when it surfaces and then go to a destination and back?
Once you have got your current location from the GPS, how will you plot a route to the destination? Will you need to add a compass to your list of equipment, so you know which way to travel?
Could anyone help me with a code that could work, I’m very new to raspberry’s and I’m more used to arduino which still baffles me somewhat!
Your requirements are very specific, with a lot of components. I seriously doubt anyone will have done a project exactly
like this to the point where sharing a finished program would be possible or useful.
You might get lots of help if you ask questions that are more limited in their scope.
I share your bafflement with Arduino. Just a microcontroller that can only execute a single script at a time, and where the code has to be developed elsewhere and then uploaded to the chip to test it. Compare that to an RPi that can run an entire Operating System, allows you to run multiple scripts simultaneously, and does 'develop and test' on the same machine. Yes, I'm baffled why anyone would want an Arduino! (Apart from the predictable real time execution and the built-in ADC and the low power draw... !)
[Just kidding... Horses for Courses and all that..]