Globals.swift 945 B

12345678910111213141516171819202122232425262728
  1. // LoopFollow
  2. // Globals.swift
  3. import Foundation
  4. enum globalVariables {
  5. static var debugLog = ""
  6. // Graph Settings
  7. static let dotBG: Float = 3
  8. static let dotCarb: Float = 5
  9. static let dotBolus: Float = 5
  10. static let dotOther: Float = 5
  11. // Glucose display range (mg/dL)
  12. // Values at or below the min are shown as "LOW" on the main display;
  13. // values at or above the max are shown as "HIGH". Also used to clamp
  14. // BG readings and prediction values on the graph.
  15. static let minDisplayGlucose: Int = 39
  16. static let maxDisplayGlucose: Int = 400
  17. // Number of apps that may upload BG to the same account (a looping system,
  18. // the Dexcom app, Apple Watch, ...). Each one writes a duplicate reading per
  19. // slot, so the Nightscout entry-count request is multiplied by this to avoid
  20. // truncating history before the date filter bounds the window.
  21. static let maxExpectedUploaders = 4
  22. }