From 16023d33d71c450231076c7bfaf7dde1e9c46d66 Mon Sep 17 00:00:00 2001
From: Mattia Mancini <mancini@astron.nl>
Date: Fri, 30 Nov 2018 14:33:53 +0000
Subject: [PATCH] OSB-34: fix polarization rcu association

---
 .../DBInterface/monitoringdb/views/controllers.py           | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/LCU/Maintenance/DBInterface/monitoringdb/views/controllers.py b/LCU/Maintenance/DBInterface/monitoringdb/views/controllers.py
index 5457d175472..257d517b01a 100644
--- a/LCU/Maintenance/DBInterface/monitoringdb/views/controllers.py
+++ b/LCU/Maintenance/DBInterface/monitoringdb/views/controllers.py
@@ -924,13 +924,13 @@ class ControllerStationComponentElementErrors(ValidableReadOnlyView):
 
         if type == 'LBH':
             rcu_id = antenna_id * 2
-            rcu_id += 1 if polarization == 'X' else 0
+            rcu_id += 0 if polarization == 'X' else 1
         elif type == 'LBL':
             rcu_id = (antenna_id - 48) * 2
-            rcu_id += 0 if polarization == 'X' else 1
+            rcu_id += 1 if polarization == 'X' else 0
         elif type == 'HBA':
             rcu_id = antenna_id
-            rcu_id += 1 if polarization == 'X' else 0
+            rcu_id += 0 if polarization == 'X' else 1
         else:
             rcu_id = -1
         return rcu_id
-- 
GitLab