Merge pull request #1020 from MilosKozak/dia-refactor

default DIA
This commit is contained in:
Milos Kozak 2018-05-08 23:43:54 +02:00 committed by GitHub
commit e29a590cad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -12,7 +12,7 @@ public class Constants {
public static final double MMOLL_TO_MGDL = 18; // 18.0182;
public static final double MGDL_TO_MMOLL = 1 / MMOLL_TO_MGDL;
public static final double defaultDIA = 3d;
public static final double defaultDIA = 5d;
public static final Double REALLYHIGHBASALRATE = 1111111d;
public static final Integer REALLYHIGHPERCENTBASALRATE = 1111111;

View file

@ -58,7 +58,7 @@ public class ExtendedBolus implements Interval, DataPointWithLabelInterface {
public int durationInMinutes = 0; // duration == 0 means end of extended bolus
@DatabaseField
public int insulinInterfaceID = InsulinInterface.FASTACTINGINSULIN;
public int insulinInterfaceID = InsulinInterface.OREF_RAPID_ACTING;
@DatabaseField
public double dia = Constants.defaultDIA;

View file

@ -8,8 +8,8 @@ import info.nightscout.androidaps.plugins.Treatments.Treatment;
*/
public interface InsulinInterface {
int FASTACTINGINSULIN = 0;
int FASTACTINGINSULINPROLONGED = 1;
// int FASTACTINGINSULIN = 0; // old model no longer available
// int FASTACTINGINSULINPROLONGED = 1; // old model no longer available
int OREF_RAPID_ACTING = 2;
int OREF_ULTRA_RAPID_ACTING = 3;
int OREF_FREE_PEAK = 4;

View file

@ -57,7 +57,7 @@ public class Treatment implements DataPointWithLabelInterface {
public boolean isSMB = false;
@DatabaseField
public int insulinInterfaceID = InsulinInterface.FASTACTINGINSULIN; // currently unused, will be used in the future
public int insulinInterfaceID = InsulinInterface.OREF_RAPID_ACTING; // currently unused, will be used in the future
@DatabaseField
public double dia = Constants.defaultDIA; // currently unused, will be used in the future