Просмотр исходного кода

Adjust default AF

(cherry picked from commit 36d01528f3afe6d240a12e788f2e6757f78cf231)
Jon Mårtensson 3 лет назад
Родитель
Сommit
4f82a0487c

Разница между файлами не показана из-за своего большого размера
+ 1 - 1
FreeAPS/Sources/Localizations/Main/en.lproj/Localizable.strings


+ 1 - 1
FreeAPS/Sources/Models/Preferences.swift

@@ -43,7 +43,7 @@ struct Preferences: JSON {
     var suspendZerosIOB: Bool = true
     var timestamp: Date?
     var maxDeltaBGthreshold: Decimal = 0.2
-    var adjustmentFactor: Decimal = 1.0
+    var adjustmentFactor: Decimal = 0.5
     var sigmoid: Bool = false
     var enableDynamicCR: Bool = false
     var useNewFormula: Bool = false

+ 1 - 1
FreeAPS/Sources/Modules/PreferencesEditor/PreferencesEditorStateModel.swift

@@ -178,7 +178,7 @@ extension PreferencesEditor {
                     displayName: NSLocalizedString("Adjustment Factor", comment: "Adjust Dynamic ISF constant"),
                     type: .decimal(keypath: \.adjustmentFactor),
                     infoText: NSLocalizedString(
-                        "Adjust Dynamic ratios by a constant. Default is 1. Higher than 1 => lower ISF",
+                        "Adjust Dynamic ratios by a constant. Default is 0.5. The higher the value, the larger the correction of your ISF will be for a high or a low BG. Maximum correction is determined by the Autosens min/max settings. For Sigmoid function an adjustment factor of 0.4 - 0.5 is recommended to begin with. For the logaritmic formula threre is less consensus, but starting with 0.5 - 0.8 is more appropiate for most users",
                         comment: "Adjust Dynamic ISF constant"
                     ),
                     settable: self