Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loop RC is dependent on sensor start time #2287

Open
motinis opened this issue Feb 7, 2025 · 0 comments
Open

Loop RC is dependent on sensor start time #2287

motinis opened this issue Feb 7, 2025 · 0 comments

Comments

@motinis
Copy link

motinis commented Feb 7, 2025

The current LoopMath.decayEffect always rounds down to the nearest 5 minutes. This means that the RC effect can be identical (on the clock, not relative to the time of the latest glucose reading) for glucose readings at 09:00:00 and 09:04:59. This also means that the RC effect difference is "large" between a glucose reading at 09:04:59 and 09:05:00 (where the latter will see the first effect at 09:05 and the latter at 09:10).

This can be fixed by changing the application to a quadratic model which satisfies the equations where time is then taken relative to the latest glucose timestamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant