update pid gain to make simulation smoother