uart: Added debug asserts.
fps: new derivative base algorithm.