Compensation and control of two-inputs systems with hysteresis