Adapting FECGx Kalman Filter to use cycles instead fixed time lag