forked from LoopKit/Loop
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathLoopCoreConstants.swift
More file actions
24 lines (19 loc) · 928 Bytes
/
LoopCoreConstants.swift
File metadata and controls
24 lines (19 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
// LoopCoreConstants.swift
// LoopCore
//
// Created by Pete Schwamb on 10/16/20.
// Copyright © 2020 LoopKit Authors. All rights reserved.
//
import Foundation
import LoopKit
public enum LoopCoreConstants {
/// The amount of time since a given date that input data should be considered valid
public static let inputDataRecencyInterval = TimeInterval(minutes: 15)
/// The amount of time in the future a glucose value should be considered valid
public static let futureGlucoseDataInterval = TimeInterval(minutes: 5)
public static let defaultCarbAbsorptionTimes: CarbStore.DefaultAbsorptionTimes = (fast: .minutes(30), medium: .hours(3), slow: .hours(5))
/// How much historical glucose to include in a dosing decision
/// Somewhat arbitrary, but typical maximum visible in bolus glucose preview
public static let dosingDecisionHistoricalGlucoseInterval = TimeInterval(hours: 2)
}