Skip to content

Open loop if the diff between 2 consecutive values is >50mg/dl#1

Merged
Andrei0105 merged 1 commit intospike-autobolusfrom
spike-autobolus-limit
May 28, 2020
Merged

Open loop if the diff between 2 consecutive values is >50mg/dl#1
Andrei0105 merged 1 commit intospike-autobolusfrom
spike-autobolus-limit

Conversation

@Andrei0105
Copy link
Owner

@Andrei0105 Andrei0105 commented May 27, 2020

Did multiple tests with a lower threshold on live data from Spike + MM.
Also with fake values from Spike in follower mode.
Everything is working as expected, the app switches to open loop is there is a jump higher than 50mg/dl between 2 consecutive values.

@Andrei0105 Andrei0105 merged commit 68a36ac into spike-autobolus May 28, 2020
@Andrei0105 Andrei0105 deleted the spike-autobolus-limit branch August 23, 2020 13:30
@adamd9
Copy link

adamd9 commented May 26, 2021

Hey @Andrei0105 ! Thank you so much for your work on these branches - I'm basically loving them, except that I found that often I'd check on loop after a couple of hours and find it open - I've just stumbled across this commit as the likely cause (it was an ageing sensor so occasionally would have those BG jumps). I guess it's more critical to be working of accurate results with AB on but at the same time silently moving to open loop can be dangerous in itself. Can I suggest a couple of ideas that might enhance this improvement?
-Post an alert/notification to the phone from the spike app when it drops out of loop, similar to the low reservoir / low battery warnings
-Enhance the math to also check if it was just a blip. I.e next reading if the loop is still open due to a big jump, check if the latest reading is within the tolerance (50mg/dl?) of the reading 2 values ago and re-close the loop if it is?

Keep up the great work!

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.

2 participants