From 540fbed4a831a093a073920dd62d6b3b9e78f0ed Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Mon, 18 Oct 2021 11:13:29 +0200
Subject: [PATCH] L2SS-358: Add effective LED colour

---
 devices/devices/recv.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/devices/devices/recv.py b/devices/devices/recv.py
index 17909f523..2506bd4c7 100644
--- a/devices/devices/recv.py
+++ b/devices/devices/recv.py
@@ -64,6 +64,7 @@ class RECV(opcua_device):
     # Attributes
     # ----------
     ANT_status_R = attribute(dtype=str, max_dim_x=3, max_dim_y=32)
+    RCU_LED_colour_R = attribute(dtype=numpy.uint32, dims=(32,), fget=lambda self: (2 * self.RCU_LED_green_on_R + 4 * self.RCU_LED_red_on_R).astype(numpy.uint32))
 
     ANT_mask_RW                  = attribute_wrapper(comms_annotation=["ANT_mask_RW"               ],datatype=numpy.bool_  , dims=(3,32), access=AttrWriteType.READ_WRITE)
     HBAT_BF_delays_R             = attribute_wrapper(comms_annotation=["HBAT_BF_delays_R"          ],datatype=numpy.int64  , dims=(32,96))
-- 
GitLab