I am using a switch to set the initial condition of my PID-controller. So if a certain constant has one as a value, I want the initial value to be lower. However the switch lets one single value through before the value goes down and the PID-controller uses this initial value and not the whole rest that is lower. I also tried an if-function, but that just does the same thing.
Is there a way to use the second time-value?