how many variables are in your state? This sounds like it could be simple enough that an interpolation off a lookup table would work as well as or better than a controller, but I don't have enough details to say for sure. Just consider it from that angle -- controllers can be very fiddly to get right.