2016-06-07 21:48:17 +02:00
|
|
|
package info.nightscout.androidaps;
|
|
|
|
|
2019-02-26 20:38:27 +01:00
|
|
|
import info.nightscout.androidaps.utils.T;
|
2018-03-31 00:36:03 +02:00
|
|
|
|
2016-06-07 21:48:17 +02:00
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
|
2018-05-06 12:49:03 +02:00
|
|
|
public static final double defaultDIA = 5d;
|
2017-04-21 11:45:25 +02:00
|
|
|
|
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
|
|
|
|
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
|
2019-07-19 11:44:43 +02:00
|
|
|
public static final int CPP_MIN_PERCENTAGE = 30;
|
2017-01-09 02:28:27 +01:00
|
|
|
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
|
|
|
|
2019-09-30 17:22:07 +02:00
|
|
|
public static final double MAX_PROFILE_SWITCH_DURATION = 7 * 24 * 60; // [min] ~ 7 days
|
|
|
|
|
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
|
2018-04-05 20:38:49 +02:00
|
|
|
public static final double defaultActivityTTmgdl = 140d;
|
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
|
2018-04-05 20:38:49 +02:00
|
|
|
public static final double defaultEatingSoonTTmgdl = 90d;
|
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
|
|
|
|
2019-08-27 20:16:51 +02:00
|
|
|
public static final double MIN_TT_MGDL = 72d;
|
|
|
|
public static final double MAX_TT_MGDL = 180d;
|
|
|
|
public static final double MIN_TT_MMOL = 4d;
|
|
|
|
public static final double MAX_TT_MMOL = 10d;
|
|
|
|
|
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;
|
2018-04-19 12:57:13 +02:00
|
|
|
public static final double DEFAULT_MAX_ABSORPTION_TIME = 6.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;
|
2018-03-31 00:36:03 +02:00
|
|
|
|
|
|
|
//SMS Communicator
|
|
|
|
public static final long SMS_CONFIRM_TIMEOUT = T.mins(5).msecs();
|
2018-07-27 11:35:32 +02:00
|
|
|
|
2019-03-07 11:32:09 +01:00
|
|
|
//Storage [MB]
|
|
|
|
public static final long MINIMUM_FREE_SPACE = 200;
|
|
|
|
|
2019-12-11 23:15:36 +01:00
|
|
|
// Overview
|
|
|
|
public static final double LOWMARK = 76.0;
|
|
|
|
public static final double HIGHMARK = 180.0;
|
|
|
|
|
2019-12-20 22:22:58 +01:00
|
|
|
// STATISTICS
|
|
|
|
public static final double STATS_TARGET_LOW_MMOL = 3.9;
|
|
|
|
public static final double STATS_TARGET_HIGH_MMOL = 7.8;
|
|
|
|
public static final double STATS_RANGE_LOW_MMOL = 3.9;
|
|
|
|
public static final double STATS_RANGE_HIGH_MMOL = 10.0;
|
|
|
|
|
|
|
|
|
2016-06-07 21:48:17 +02:00
|
|
|
}
|