Re: Bumpless Transfer PIC18F
looks like a pretty classic state machine solution would be in order
enum state [idle, beginning, held , releasing]; button states
process each incoming val according to present state
while state idle: full pass val
transition --> to beginning, redux = 80 ,pass val-redux, transition --> state to held ; [button pressed detected]
while state held: pass val-redux , redux += 80 until redux=val ; [button held]
transition --> to releasing ,redux -= 80 ; pass val-redux, [button release detected]
while state releasing: pass val-redux , redux -= 80 , until redux=0 ,transition --> state to idle
Re: Bumpless Transfer PIC18F
What if the incoming value changes as the output is ramping towards one end? Should that change in input signal be ignored or should there be an equal change in the output?
Re: Bumpless Transfer PIC18F
i would expect 'bumpless transfer' to mean that the final condition should gently ramp back up to the initial condition
so as to to not cause alarming output swings after manual intervention is completed. the incoming input during the
"tampering process" would be irrelevant in that case
Re: Bumpless Transfer PIC18F
We can ignore the incoming signal during the period it is being replaced/overridden,
but as soon as the manual intervention is finished the system needs to gently return to what the incoming signal is saying.