Can you explain the problem you are having with more detail? Theres not enough information here to understand the problem you are having.
- Is the encoder not initializing when you set those values?
- Can you print out the all the other values that you are trying to initialize the encoder with?
We would be happy to help once we understand what you are experiencing.