Bang-bang control