Adapt coefficients of compensator to bring system into phase margin