From 79555974631b9f9a66efd0fd07c420da7e0f12d9 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Mon, 13 Mar 2023 15:03:47 +0100 Subject: [PATCH] L2SS-1268: Add support for cross-polarisation subband weights --- .../tangostationcontrol/devices/sdp/sdp.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py b/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py index 6dc6fd68a..63ad045ad 100644 --- a/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py +++ b/tangostationcontrol/tangostationcontrol/devices/sdp/sdp.py @@ -88,6 +88,12 @@ class SDP(OPCUADevice): default_value=[[SUBBAND_UNIT_WEIGHT] * S_pn * N_subbands] * N_pn, ) + FPGA_subband_weights_cross_RW_default = device_property( + dtype="DevVarULongArray", + mandatory=False, + default_value=[[0] * S_pn * N_subbands] * N_pn, + ) + clock_RW_default = device_property( dtype="DevULong", mandatory=False, default_value=CLK_200_MHZ ) @@ -277,6 +283,17 @@ class SDP(OPCUADevice): dims=(N_pn, S_pn, N_subbands), access=AttrWriteType.READ_WRITE, ) + FPGA_subband_weights_cross_R = AttributeWrapper( + comms_annotation=["FPGA_subband_weights_cross_R"], + datatype=numpy.uint32, + dims=(N_pn, S_pn, N_subbands), + ) + FPGA_subband_weights_cross_RW = AttributeWrapper( + comms_annotation=["FPGA_subband_weights_cross_RW"], + datatype=numpy.uint32, + dims=(N_pn, S_pn, N_subbands), + access=AttrWriteType.READ_WRITE, + ) FPGA_time_since_last_pps_R = AttributeWrapper( comms_annotation=["FPGA_time_since_last_pps_R"], datatype=numpy.float_, -- GitLab