The QF 12-pounder ( 76 mm ) 12 cwt gun that was the Battle-class trawlers' main armament was considered to be the smallest gun that stood a chance of putting a surfaced U-boat out of action, and they also carried a small number of depth charges.