max and minium rotation

Check out this other post. It may help.