4 ms·
You can do better by having the 0.04 parameter follow an exponential decay as well. Start at 1.0 and have it decay to 0.04 or even 0.01 over time. That would ma
by phkahler 10y ago
You can do better by having the 0.04 parameter follow an exponential decay as well. Start at 1.0 and have it decay to 0.04 or even 0.01 over time. That would make it more like a real Kalman filter for such a simple measurement. You'll get fast convergence to an initial value and then very smooth response after that.
A classic example is a fuel gauge where you want to reject low frequency sloshing but have a rapid startup without knowing in advance what the level really is.
- skykooler 10y agoSomething that Toyota apparently doesn't do; their fuel gauges take over a minute to react fully when you turn on the car after filling the tank.
- Bromskloss 10y agoHow about a mechanical low-pass filter?: A vertical tube connected to the tank via a tiny hole would not be affected much by sloshing, but would slowly drift towards having the same level of fuel as the tank has on average.
- ams6110 10y agoThat's pretty much what fuel tanks do.