Morning Ashley
Thanks again for your comments. I have had a play with the various suggestions and come up with a working solution, which is as follows:
When not in use the barrel will rest in a level position and so will drain 90% of it water as the boat surfaces and the rest of the water will drain through a small hole at the base of the barrel.
To keep the water out of the charges I will use a 1/2 in gas valve at the end of the barrel (just like a washing machine tap) which will operated by a servo, the same servo will also elevate the barrel into the firing position the raising of which will ensure that any remaining water in the barrel is sent to the drain hole.
Once fired the operating servo will close the valve and lower the barrel to its rest position before the boat submerges again.
With this process I can surface the boat and fire the gun as often as I like without having to bring the boat to the shore for re loading.
Thanks again
Paul