 Increase the formula_40 until the output of the loop oscillates, then the formula_40 should be set to approximately half of that value for a "quarter amplitude decay" type response.Then increase formula_38 until any offset is corrected in sufficient time for the process.However, too much formula_38 will cause instability.