A microprocessor-based Kalman filter