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

Configurable bolus threshold #712

Closed
wants to merge 18 commits into from

Conversation

ddaniels1
Copy link

@ddaniels1 ddaniels1 commented Apr 30, 2018

Pete this is my first pull request. I am not sure I have configured this to work right with mmol though the code is essentially mimicked through all the files after suspend threshold. The basic premise here, and it works in testing for a month is that you can now set a separate bolus threshold that will allow a bolus between bolus and suspend threshold numbers where loop would otherwise still zero temp. Any feedback appreciated. DM61 did the coding to set the feature up, my code was to make it configurable from loop instead of hardcoding a number as he had.

@trixing
Copy link

trixing commented Apr 30, 2018

It may actually be nicer to have a gradient instead of a threshold, ie.

do something like: units = units * min(currentGlucoseValue - suspendThreshold, 0) / (initialThreshold - suspendThreshold)

@sethgagnon
Copy link

Any chance of this making its way into dev branch, or has the code changed so much since then that there are too many conflicts? Thanks

@ps2
Copy link
Collaborator

ps2 commented Oct 10, 2019

I don't think this will be able to land in mainline Loop; having Loop suggest insulin when you're low is risky. You can always override what Loop suggests. In the future we may have a bolus interface that visually shows you what Loop thinks will happen with a specified dose amount, and you could use that as a guideline for how much to dose in these situations.

@ps2 ps2 closed this Oct 10, 2019
ps2 added a commit that referenced this pull request Oct 27, 2024
…cking (#712)

* Update Loop for LoopKit api changes for avoiding thread blocking

* Fix non-deterministic test behavior

* Updates to use latest LoopAlgorithm package
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

Successfully merging this pull request may close these issues.

5 participants