Skip to content

Commit

Permalink
Update determine-basal.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxy7 committed Jan 8, 2021
1 parent 04027fd commit 3e4fc83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/determine-basal/determine-basal.js
Expand Up @@ -498,6 +498,7 @@ var determine_basal = function determine_basal(glucose_status, currenttemp, iob_
// remainingCIpeak (mg/dL/5m) = remainingCarbs (g) * CSF (mg/dL/g) * 5 (m/5m) * 1h/60m / (remainingCATime/2) (h)
var remainingCIpeak = remainingCarbs * csf * 5 / 60 / (remainingCATime/2);
//console.error(profile.min_5m_carbimpact,ci,totalCI,totalCA,remainingCarbs,remainingCI,remainingCATime);
console.error("profile.min_5m_carbimpact:",profile.min_5m_carbimpact,"ci:",ci,"totalCI:",round(totalCI,2),"totalCA:",round(totalCA,2),"remainingCarbs:",remainingCarbs,"remainingCIpeak:",remainingCIpeak,"remainingCATime:",remainingCATime);

// calculate peak deviation in last hour, and slope from that to current deviation
var slopeFromMaxDeviation = round(meal_data.slopeFromMaxDeviation,2);
Expand Down

0 comments on commit 3e4fc83

Please sign in to comment.