Skip to content

Commit

Permalink
basic description of alarms
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Aug 17, 2020
1 parent bd56bc8 commit 6355bda
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions _docs/alarm.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Alarm
==========

Alarms are represented as :class:`~.alarm.Alarm` objects, which are created and managed by the
:class:`~.alarm.Alarm_Manager`. A collection of :class:`~.alarm.Alarm_Rule` s
define the :class:`~.alarm.Condition` s
for raising :class:`~.alarm.Alarm` s of different :class:`~.alarm.AlarmSeverity` . The alarm manager is
continuously fed :class:`~.message.SensorValues` objects during :meth:`.PVP_Gui.update_gui`, which it uses to
:meth:`~.Alarm_Rule.check` each alarm rule. The alarm manager emits :class:`~.alarm.Alarm` objects to the
:meth:`.PVP_Gui.handle_alarm` method. The alarm manager also updates alarm thresholds set as :attr:`.Condition.depends`
when control parameters are set (eg. updates the ``HIGH_PRESSURE`` alarm to be triggered 15% above some set ``PIP`` ).

One :class:`~.alarm.Alarm_Rule` is defined for each :class:`~.alarm.AlarmType` in :data:`.alarm.ALARM_RULES`.




Main Alarm Module
-------------------

Expand Down

0 comments on commit 6355bda

Please sign in to comment.