2016-06-07 21:48:17 +02:00
|
|
|
package info.nightscout.androidaps;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by mike on 07.06.2016.
|
|
|
|
*/
|
|
|
|
public class Constants {
|
2017-01-06 22:42:37 +01:00
|
|
|
public static final String MGDL = "mg/dl"; // This is Nightscout's representation
|
2016-06-07 21:48:17 +02:00
|
|
|
public static final String MMOL = "mmol";
|
|
|
|
|
2016-06-24 17:16:17 +02:00
|
|
|
public static final double MMOLL_TO_MGDL = 18; // 18.0182;
|
2016-06-07 21:48:17 +02:00
|
|
|
public static final double MGDL_TO_MMOLL = 1 / MMOLL_TO_MGDL;
|
|
|
|
|
2017-04-21 11:45:25 +02:00
|
|
|
public static final double defaultDIA = 3d;
|
|
|
|
|
2018-03-20 22:09:22 +01:00
|
|
|
public static final Double REALLYHIGHBASALRATE = 1111111d;
|
2018-03-21 20:24:02 +01:00
|
|
|
public static final Integer REALLYHIGHPERCENTBASALRATE = 1111111;
|
2018-03-21 23:01:30 +01:00
|
|
|
public static final double REALLYHIGHBOLUS = 1111111d;
|
2018-03-22 10:31:07 +01:00
|
|
|
public static final Integer REALLYHIGHCARBS = 1111111;
|
2018-03-22 21:13:26 +01:00
|
|
|
public static final double REALLYHIGHIOB = 1111111d;
|
2016-06-24 17:16:17 +02:00
|
|
|
|
2016-06-26 11:43:26 +02:00
|
|
|
public static final Integer notificationID = 556677;
|
|
|
|
|
2016-07-15 20:36:45 +02:00
|
|
|
public static final int hoursToKeepInDatabase = 72;
|
2016-07-21 15:10:42 +02:00
|
|
|
public static final int daysToKeepHistoryInDatabase = 30;
|
2016-07-07 00:56:31 +02:00
|
|
|
|
2016-08-02 15:43:21 +02:00
|
|
|
public static final long keepAliveMsecs = 5 * 60 * 1000L;
|
2016-07-14 23:29:21 +02:00
|
|
|
|
2017-01-06 22:42:37 +01:00
|
|
|
// SMS COMMUNICATOR
|
2016-07-14 23:29:21 +02:00
|
|
|
public static final long remoteBolusMinDistance = 15 * 60 * 1000L;
|
2017-01-06 22:42:37 +01:00
|
|
|
|
2017-01-09 02:28:27 +01:00
|
|
|
// Circadian Percentage Profile
|
|
|
|
public static final int CPP_MIN_PERCENTAGE = 50;
|
|
|
|
public static final int CPP_MAX_PERCENTAGE = 200;
|
2017-09-24 10:39:54 +02:00
|
|
|
public static final int CPP_MIN_TIMESHIFT = -6;
|
2017-10-10 20:47:38 +02:00
|
|
|
public static final int CPP_MAX_TIMESHIFT = 23;
|
2017-01-17 21:28:57 +01:00
|
|
|
|
2017-02-14 19:47:45 +01:00
|
|
|
//DanaR
|
|
|
|
public static final double dailyLimitWarning = 0.95d;
|
2017-02-17 13:18:36 +01:00
|
|
|
|
2018-03-10 19:22:31 +01:00
|
|
|
// Temp targets
|
|
|
|
public static final int defaultActivityTTDuration = 90; // min
|
|
|
|
public static final double defaultActivityTTmgdl = 90d;
|
2018-03-17 22:07:00 +01:00
|
|
|
public static final double defaultActivityTTmmol = 8d;
|
2018-03-10 19:22:31 +01:00
|
|
|
public static final int defaultEatingSoonTTDuration = 45; // min
|
|
|
|
public static final double defaultEatingSoonTTmgdl = 140d;
|
2018-03-17 22:07:00 +01:00
|
|
|
public static final double defaultEatingSoonTTmmol = 5d;
|
|
|
|
public static final int defaultHypoTTDuration = 30; // min
|
|
|
|
public static final double defaultHypoTTmgdl = 120d;
|
|
|
|
public static final double defaultHypoTTmmol = 6.5d;
|
2018-03-10 19:22:31 +01:00
|
|
|
|
2017-02-17 13:18:36 +01:00
|
|
|
//NSClientInternal
|
|
|
|
public static final int MAX_LOG_LINES = 100;
|
2017-04-30 21:57:55 +02:00
|
|
|
|
2017-05-12 15:26:16 +02:00
|
|
|
//Screen: Threshold for width/height to go into small width/height layout
|
2017-04-30 21:57:55 +02:00
|
|
|
public static final int SMALL_WIDTH = 320;
|
2017-12-03 17:30:20 +01:00
|
|
|
public static final int SMALL_HEIGHT = 480;
|
2017-05-04 21:09:17 +02:00
|
|
|
|
|
|
|
//Autosens
|
|
|
|
public static final double DEVIATION_TO_BE_EQUAL = 2.0;
|
2017-11-11 14:05:29 +01:00
|
|
|
|
|
|
|
// Pump
|
2017-12-04 20:26:57 +01:00
|
|
|
public static final int PUMP_MAX_CONNECTION_TIME_IN_SECONDS = 120 - 1;
|
2017-12-01 13:57:53 +01:00
|
|
|
public static final int MIN_WATCHDOG_INTERVAL_IN_SECONDS = 12 * 60;
|
2016-06-07 21:48:17 +02:00
|
|
|
}
|