look ahead an additional 15m to get insulin started faster #683
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
originally we were waiting 90m before setting minPredBGs in order to be sufficiently aggressive at bringing down BGs predicted to ramp up quickly from meals. When experimenting with shorter remainingCA carb absorption times we shortened the minPredBG lookahead to 55m+15m=70m for Fiasp, leaving rapid-acting insulins at 75m+15m=90m. This extends that another 15m, to 85m for Fiasp and 105m for RAIs, which will allow eSMB to be more aggressive at mealtimes, as seems to be necessary to accomplish no-bolus (carb guesstimate only) looping with Fiasp with 80% time in range.