Most excellent!
If I remember correctly 40 miles distance would be over the horizon. (Which will probably make you dependent on a Drone with radar for fire control?) If your rate of fire for 5” is 16 to 20 rounds per minute with 80-90% accurace that could result in substantial damage before most enemy ships could even see you.
A drone operating a radar would alert the enemy to your presence and would be killed in short order. They would also begin maneuvering so as to throw off your fire control solution. I know I would be maneuvering like crazy.
The targeting drone or aircraft would be the immediate subject of ECM (Electronic Counter Measures), degrading or disrupting its targeting capability.
This was my specialty. I have a patent in Electronic Warfare. Uncle Sam owns it but my name is on it.
WWG1WGA
Garde la Foi, mes amis! Nous nous sommes les sauveurs de la République! Maintenant et Toujours!
(Keep the Faith, my friends! We are the saviors of the Republic! Now and Forever!)
LonePalm, le Républicain du verre cassé (The Broken Glass Republican)