I have a control problem with saturation. It is nearly linear in the non-saturation zone.
Occasionally I measure huge error spikes. They must not disturb my control routine. I want to get down to 50% (of the reference voltage) in my output voltage. In the moment I do this by stepping one step up or down depending on whether the output is bigger or smaller than 50%. This leads to oscillations.
If I wait some bigger time before measuring the output voltage and then adjust the control voltage the oscillations go down. But this also extends my start-up time which is a problem as I don't know which control voltage value delivers 50% output voltage. I have to search quite a time.
How can I control the oscillations without slowing down my sampling rate?
In PID control it is said that the stationary error is reduced to zero if an integral part is added but how can I do something similar here?
Otherwise what would your approach to control this thing be?