Steering gear control function