only reset gains when entering program control loop