From b6c68b8377d5f3efee344f735076ab6274e7edd9 Mon Sep 17 00:00:00 2001 From: mhhwang Date: Wed, 9 Oct 2024 15:36:50 -0600 Subject: [PATCH] bug in heliostat_abstract --- opencsp/common/lib/csp/HeliostatAbstract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opencsp/common/lib/csp/HeliostatAbstract.py b/opencsp/common/lib/csp/HeliostatAbstract.py index 26b8b320f..13c2ac18e 100644 --- a/opencsp/common/lib/csp/HeliostatAbstract.py +++ b/opencsp/common/lib/csp/HeliostatAbstract.py @@ -190,9 +190,9 @@ def set_orientation(self, config: HeliostatConfiguration) -> None: Uses the `movement_transform(self, *args)` function to set the `_self_to_parent_transform` transformation of the FacetEnsemble in heliostat. """ - # current_position = TransformXYZ.from_V(self.facet_ensemble._self_to_parent_transform.V) + current_position = TransformXYZ.from_V(self.facet_ensemble._self_to_parent_transform.V) self.current_configuration = config - self.facet_ensemble._self_to_parent_transform = self.movement_transform(config) + self.facet_ensemble._self_to_parent_transform = current_position * self.movement_transform(config) def set_orientation_from_pointing_vector(self, pointing_vector: Vxyz) -> None: """