Skip to content
Snippets Groups Projects
Commit 7fa367a1 authored by BRONES Romain's avatar BRONES Romain
Browse files

fix: Add ApplyCmdsToXPlane and Z booleans

parent ae7519a0
No related branches found
No related tags found
No related merge requests found
...@@ -132,6 +132,16 @@ class DG_PY_FOFBLegacy(Device): ...@@ -132,6 +132,16 @@ class DG_PY_FOFBLegacy(Device):
doc="Translated to checking the date of attribute in FofbCommand and the loading date recorded in a attribute by FofbCommand", doc="Translated to checking the date of attribute in FofbCommand and the loading date recorded in a attribute by FofbCommand",
) )
applyCmdsToXPlane = attribute(
dtype='DevBoolean',
access=AttrWriteType.READ_WRITE,
)
applyCmdsToZPlane = attribute(
dtype='DevBoolean',
access=AttrWriteType.READ_WRITE,
)
xSpsIsLiberaControlled = attribute( xSpsIsLiberaControlled = attribute(
dtype=('DevBoolean',), dtype=('DevBoolean',),
max_dim_x=128, max_dim_x=128,
...@@ -205,6 +215,8 @@ class DG_PY_FOFBLegacy(Device): ...@@ -205,6 +215,8 @@ class DG_PY_FOFBLegacy(Device):
Device.init_device(self) Device.init_device(self)
#----- PROTECTED REGION ID(DG_PY_FOFBLegacy.init_device) ENABLED START -----# #----- PROTECTED REGION ID(DG_PY_FOFBLegacy.init_device) ENABLED START -----#
self.set_state(tango.DevState.INIT) self.set_state(tango.DevState.INIT)
self._apply_cmds_to_x_plane = False
self._apply_cmds_to_z_plane = False
try: try:
self.d_status.pop('init') self.d_status.pop('init')
...@@ -387,6 +399,30 @@ class DG_PY_FOFBLegacy(Device): ...@@ -387,6 +399,30 @@ class DG_PY_FOFBLegacy(Device):
return attr_date < load_date return attr_date < load_date
#----- PROTECTED REGION END -----# // DG_PY_FOFBLegacy.zInvRespMatrixLoadedOnBpms_read #----- PROTECTED REGION END -----# // DG_PY_FOFBLegacy.zInvRespMatrixLoadedOnBpms_read
def read_applyCmdsToXPlane(self):
# PROTECTED REGION ID(DG_PY_FOFBLegacy.applyCmdsToXPlane_read) ENABLED START #
"""Return the applyCmdsToXPlane attribute."""
return self._apply_cmds_to_x_plane
# PROTECTED REGION END # // DG_PY_FOFBLegacy.applyCmdsToXPlane_read
def write_applyCmdsToXPlane(self, value):
# PROTECTED REGION ID(DG_PY_FOFBLegacy.applyCmdsToXPlane_write) ENABLED START #
"""Set the applyCmdsToXPlane attribute."""
self._apply_cmds_to_x_plane = value
# PROTECTED REGION END # // DG_PY_FOFBLegacy.applyCmdsToXPlane_write
def read_applyCmdsToZPlane(self):
# PROTECTED REGION ID(DG_PY_FOFBLegacy.applyCmdsToZPlane_read) ENABLED START #
"""Return the applyCmdsToZPlane attribute."""
return self._apply_cmds_to_z_plane
# PROTECTED REGION END # // DG_PY_FOFBLegacy.applyCmdsToZPlane_read
def write_applyCmdsToZPlane(self, value):
# PROTECTED REGION ID(DG_PY_FOFBLegacy.applyCmdsToZPlane_write) ENABLED START #
"""Set the applyCmdsToZPlane attribute."""
self._apply_cmds_to_z_plane = value
# PROTECTED REGION END # // DG_PY_FOFBLegacy.applyCmdsToZPlane_write
def read_xSpsIsLiberaControlled(self): def read_xSpsIsLiberaControlled(self):
#----- PROTECTED REGION ID(DG_PY_FOFBLegacy.xSpsIsLiberaControlled_read) ENABLED START -----#attr.set_value(self.attr_xSpsIsLiberaControlled_read) #----- PROTECTED REGION ID(DG_PY_FOFBLegacy.xSpsIsLiberaControlled_read) ENABLED START -----#attr.set_value(self.attr_xSpsIsLiberaControlled_read)
try: try:
......
...@@ -180,6 +180,22 @@ ...@@ -180,6 +180,22 @@
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/> <status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<properties description="Translated to checking the date of attribute in FofbCommand and the loading date recorded in a attribute by FofbCommand" label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/> <properties description="Translated to checking the date of attribute in FofbCommand and the loading date recorded in a attribute by FofbCommand" label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/>
</attributes> </attributes>
<attributes name="applyCmdsToXPlane" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" allocReadMember="true" isDynamic="false">
<dataType xsi:type="pogoDsl:BooleanType"/>
<changeEvent fire="false" libCheckCriteria="false"/>
<archiveEvent fire="false" libCheckCriteria="false"/>
<dataReadyEvent fire="false" libCheckCriteria="true"/>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<properties description="" label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/>
</attributes>
<attributes name="applyCmdsToZPlane" attType="Scalar" rwType="READ_WRITE" displayLevel="OPERATOR" polledPeriod="0" maxX="" maxY="" allocReadMember="true" isDynamic="false">
<dataType xsi:type="pogoDsl:BooleanType"/>
<changeEvent fire="false" libCheckCriteria="false"/>
<archiveEvent fire="false" libCheckCriteria="false"/>
<dataReadyEvent fire="false" libCheckCriteria="true"/>
<status abstract="false" inherited="false" concrete="true" concreteHere="true"/>
<properties description="" label="" unit="" standardUnit="" displayUnit="" format="" maxValue="" minValue="" maxAlarm="" minAlarm="" maxWarning="" minWarning="" deltaTime="" deltaValue=""/>
</attributes>
<attributes name="xSpsIsLiberaControlled" attType="Spectrum" rwType="READ" displayLevel="OPERATOR" polledPeriod="0" maxX="128" maxY="" allocReadMember="true" isDynamic="false"> <attributes name="xSpsIsLiberaControlled" attType="Spectrum" rwType="READ" displayLevel="OPERATOR" polledPeriod="0" maxX="128" maxY="" allocReadMember="true" isDynamic="false">
<dataType xsi:type="pogoDsl:BooleanType"/> <dataType xsi:type="pogoDsl:BooleanType"/>
<changeEvent fire="false" libCheckCriteria="false"/> <changeEvent fire="false" libCheckCriteria="false"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment