Nearly two decades ago, the Pentagon tasked BAE Systems and General Atomics to develop a working railgun that would help steer onboard guns away from gunpowder-based propulsion to electric propulsion.