Skip to content

System Safety Checks and Limits

timomer edited this page Dec 2, 2016 · 2 revisions

The Saftey Object

The Saftey Object is responsible for managing checks and limits. With any limit, the most restrictive wins.

User set Limits

Per user limits that can be set in Settings.

user_max_bolus

  • User set max bolus

max_basal

  • User set Max value a Temp Basal can be set to.

max_iob

  • maximum amount of non-bolus IOB OpenAPS will ever deliver

Hardcoded Limits

Limits set in Code that cannot be changed.

Max Basal

  • 3 * max_daily_basal - No more than 3x the highest rate set in the users 24-Hour Basal Profile OR
  • 4 * current_basal - No more than 4x the current Default Basal

HARDCODED_MAX_BOLUS

  • Bolus limited to a max of 15u

BOLUS_MAX_AGE_IN_MINS

  • Any Bolus older than 5mins will not be sent to Insulin Integration App

Misc Limits

UserPrefs

The UserPrefs file holds hard coded per user limits that can only be changed by manually compiling the app yourself.

  • BOLUS_ALLOWED - If True, HAPP will allow sending Bolus requests to Insulin Integration App. Default: False
  • APS_TEST_BUTTON - If True, Shows the Test button on APS Dash, used for debugging