Generate the output for the kalman filter.