Generalized Bang-Bang Control for Feedforward Constrained Regulation