From ec51757c9662bd412241a235638bf9f66d6e4761 Mon Sep 17 00:00:00 2001 From: Christoffer Fremling Date: Thu, 5 Nov 2026 10:25:35 -0800 Subject: [PATCH] slicecamd: log the fine-acquire offset in arcsec on the guiding path offset_acam_goal takes the offsets in degrees. Only the not-guiding path converts them to arcsec (for the PT command) before the log line, so while ACAM guides the line "requested offsets ... arcsec" printed degrees. The log now prints the offsets converted to arcsec on both paths. Co-Authored-By: Claude Opus 5.5 --- slicecamd/slicecam_interface.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/slicecamd/slicecam_interface.cpp b/slicecamd/slicecam_interface.cpp index ec21083e..496f40e8 100644 --- a/slicecamd/slicecam_interface.cpp +++ b/slicecamd/slicecam_interface.cpp @@ -2596,6 +2596,10 @@ namespace Slicecam { // bool is_guiding = this->is_acam_guiding.load(); + // arcsec for the log; the guiding path sends degrees + const double ra_off_arcsec = ra_off * 3600.; + const double dec_off_arcsec = dec_off * 3600.; + // send the offsets now // if ( is_guiding ) { @@ -2632,7 +2636,7 @@ namespace Slicecam { } std::ostringstream message; - message << "requested offsets dRA=" << ra_off << " dDEC=" << dec_off << " arcsec"; + message << "requested offsets dRA=" << ra_off_arcsec << " dDEC=" << dec_off_arcsec << " arcsec"; logwrite(function, message.str()); return NO_ERROR;