State estimation using kalman filter