|
|
|
|
|
by phkahler
1256 days ago
|
|
It can also come up in simple control systems. A simple low-pass filter can fail to converge to a steady state value if the time constant is long and the sample rate is high. Y += (X-Y) * alpha * dt When dt is small and alpha is too, the right hand side can be too small to affect the 24bit mantissa of the left. I prefer a 16/32bit fixed point version that guarantees convergene to any 16bit steady state. This happened in a power conversion system where dt=1/40000 and I needed a filter in the 10's of Hz. |
|