75 lines
2.7 KiB
Java
75 lines
2.7 KiB
Java
package info.nightscout.androidaps;
|
|
|
|
import info.nightscout.androidaps.utils.T;
|
|
|
|
/**
|
|
* Created by mike on 07.06.2016.
|
|
*/
|
|
public class Constants {
|
|
public static final String MGDL = "mg/dl"; // This is Nightscout's representation
|
|
public static final String MMOL = "mmol";
|
|
|
|
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 = 5d;
|
|
|
|
public static final Double REALLYHIGHBASALRATE = 1111111d;
|
|
public static final Integer REALLYHIGHPERCENTBASALRATE = 1111111;
|
|
public static final double REALLYHIGHBOLUS = 1111111d;
|
|
public static final Integer REALLYHIGHCARBS = 1111111;
|
|
public static final double REALLYHIGHIOB = 1111111d;
|
|
|
|
public static final Integer notificationID = 556677;
|
|
|
|
public static final int hoursToKeepInDatabase = 72;
|
|
public static final int daysToKeepHistoryInDatabase = 30;
|
|
|
|
public static final long keepAliveMsecs = 5 * 60 * 1000L;
|
|
|
|
// SMS COMMUNICATOR
|
|
public static final long remoteBolusMinDistance = 15 * 60 * 1000L;
|
|
|
|
// Circadian Percentage Profile
|
|
public static final int CPP_MIN_PERCENTAGE = 50;
|
|
public static final int CPP_MAX_PERCENTAGE = 200;
|
|
public static final int CPP_MIN_TIMESHIFT = -6;
|
|
public static final int CPP_MAX_TIMESHIFT = 23;
|
|
|
|
//DanaR
|
|
public static final double dailyLimitWarning = 0.95d;
|
|
|
|
// Temp targets
|
|
public static final int defaultActivityTTDuration = 90; // min
|
|
public static final double defaultActivityTTmgdl = 140d;
|
|
public static final double defaultActivityTTmmol = 8d;
|
|
public static final int defaultEatingSoonTTDuration = 45; // min
|
|
public static final double defaultEatingSoonTTmgdl = 90d;
|
|
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;
|
|
|
|
//NSClientInternal
|
|
public static final int MAX_LOG_LINES = 100;
|
|
|
|
//Screen: Threshold for width/height to go into small width/height layout
|
|
public static final int SMALL_WIDTH = 320;
|
|
public static final int SMALL_HEIGHT = 480;
|
|
|
|
//Autosens
|
|
public static final double DEVIATION_TO_BE_EQUAL = 2.0;
|
|
public static final double DEFAULT_MAX_ABSORPTION_TIME = 6.0;
|
|
|
|
// Pump
|
|
public static final int PUMP_MAX_CONNECTION_TIME_IN_SECONDS = 120 - 1;
|
|
public static final int MIN_WATCHDOG_INTERVAL_IN_SECONDS = 12 * 60;
|
|
|
|
//SMS Communicator
|
|
public static final long SMS_CONFIRM_TIMEOUT = T.mins(5).msecs();
|
|
|
|
//Storage [MB]
|
|
public static final long MINIMUM_FREE_SPACE = 200;
|
|
|
|
}
|