Controlling a Swarm of Robots Using Global Inputs