From 0fde37c5f0e290031c707cc785638ac8977f2844 Mon Sep 17 00:00:00 2001 From: Wim Pessemier Date: Sat, 22 Jul 2017 22:23:27 +0200 Subject: [PATCH] add emergency close process --- coffee/models/mtcs/software.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coffee/models/mtcs/software.coffee b/coffee/models/mtcs/software.coffee index ac25d27..9146237 100644 --- a/coffee/models/mtcs/software.coffee +++ b/coffee/models/mtcs/software.coffee @@ -392,6 +392,7 @@ MTCS_MAKE_STATEMACHINE THISLIB, "MTCS", endOfNight : { type: COMMONLIB.Process , comment: "End of night" } changeInstrument : { type: THISLIB.MTCSChangeInstrumentProcess , comment: "Change the instrument" } point : { type: THISLIB.MTCSPointProcess , comment: "Point the telescope and dome to a new target" } + emergencyClose : { type: COMMONLIB.Process , comment: "Close the dome and shutter asap" } calls: initialize: isEnabled : -> NOT(self.statuses.initializationStatus.initializing) @@ -420,6 +421,8 @@ MTCS_MAKE_STATEMACHINE THISLIB, "MTCS", isEnabled : -> self.statuses.initializationStatus.initialized changeInstrument: isEnabled : -> OR( self.statuses.initializationStatus.initialized, self.statuses.healthStatus.bad ) + emergencyClose: + isEnabled : -> TRUE # too important, always enable cover: operatorStatus : -> self.statuses.operatorStatus aziPos : -> self.parts.axes.parts.azi.actPos