From ead65365bdfb137b2283d1a31ea15af0ef699129 Mon Sep 17 00:00:00 2001 From: Richard Date: Sat, 21 Dec 2024 10:50:08 -0800 Subject: [PATCH] Fix reticle position after alignment --- python/PiFinder/ui/align.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/PiFinder/ui/align.py b/python/PiFinder/ui/align.py index 90bbfffd..7695c8dd 100644 --- a/python/PiFinder/ui/align.py +++ b/python/PiFinder/ui/align.py @@ -117,9 +117,8 @@ def draw_reticle(self): return if not self.align_mode: - self.reticle_position = ( - self.config_object.get_option("solve_pixel", (256, 256))[1] / 4, - self.config_object.get_option("solve_pixel", (256, 256))[0] / 4, + self.reticle_position = self.starfield.radec_to_xy( + self.solution["RA_target"], self.solution["Dec_target"] ) x_pos = round(self.reticle_position[0])