From 2b99f30ffa4372d417ad40e478554920ab7e4d8e Mon Sep 17 00:00:00 2001
From: Ruud Overeem <overeem@astron.nl>
Date: Mon, 31 May 2010 12:13:30 +0000
Subject: [PATCH] Bug 1000: Uses new Observation class with datamodel that
 support (multiple) pointings.

---
 MAC/APL/MainCU/src/MACScheduler/ObsClaimer.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.cc b/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.cc
index f0f49678b36..b6dc7e38267 100644
--- a/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.cc
+++ b/MAC/APL/MainCU/src/MACScheduler/ObsClaimer.cc
@@ -268,9 +268,9 @@ GCFEvent::TResult ObsClaimer::preparePVSS_state (GCFEvent& event, GCFPortInterfa
 				os.clear();
 				writeVector(os, theObs.beams[i].beamlets);
 				beamletArr.push_back  (new GCFPVString(os.str()));
-				angle1Arr.push_back	  (new GCFPVDouble(theObs.beams[i].angle1));
-				angle2Arr.push_back	  (new GCFPVDouble(theObs.beams[i].angle2));
-				dirTypesArr.push_back (new GCFPVString(theObs.beams[i].directionType));
+				angle1Arr.push_back	  (new GCFPVDouble(theObs.beams[i].pointings[0].angle1));
+				angle2Arr.push_back	  (new GCFPVDouble(theObs.beams[i].pointings[0].angle2));
+				dirTypesArr.push_back (new GCFPVString(theObs.beams[i].pointings[0].directionType));
 			}
 
 			// Finally we can write those value to PVSS as well.
-- 
GitLab