The C-RAM (Counter-Rocket Artillery Mortar) system and CIWS (Close In Weapon System) use a 20mm gatling cannon to destroy incoming targets. With the wide array of sensors and computers, these turrets can pinpoint the location of where incoming enemy fire is coming from.
-Links to source material here-
https