Add targetBG

This commit is contained in:
Tim Gunn 2020-05-21 00:10:16 +12:00
parent 9fc84dbeeb
commit 3c2d5ff3d6
No known key found for this signature in database
GPG key ID: C9BC1E9D0D0AED8C

View file

@ -407,6 +407,7 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
, 'bg': bg
, 'tick': tick
, 'eventualBG': eventualBG
, 'targetBG': target_bg
, 'insulinReq': 0
, 'reservoir' : reservoir_data // The expected reservoir volume at which to deliver the microbolus (the reservoir volume from right before the last pumphistory run)
, 'deliverAt' : deliverAt // The time at which the microbolus should be delivered