From eda3a53d6ffbd812277a752410ee208d219bf298 Mon Sep 17 00:00:00 2001 From: Colin Dawson Date: Mon, 13 Dec 2021 14:09:16 +0000 Subject: [PATCH] Added logging to MoxingAxis call to see if a telescope axis is moving --- Meade.net.Telescope/Telescope.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Meade.net.Telescope/Telescope.cs b/Meade.net.Telescope/Telescope.cs index d9d220d..72affd1 100644 --- a/Meade.net.Telescope/Telescope.cs +++ b/Meade.net.Telescope/Telescope.cs @@ -2320,9 +2320,15 @@ namespace ASCOM.Meade.net private bool MovingAxis() { if (SharedResourcesWrapper.IsGuiding) + { + LogMessage("MovingAxis", $"Result = false (guiding is true)"); return false; + } - return SharedResourcesWrapper.MovingPrimary || SharedResourcesWrapper.MovingSecondary; + var movingAxis = SharedResourcesWrapper.MovingPrimary || SharedResourcesWrapper.MovingSecondary; + + LogMessage("MovingAxis", $"Result = {movingAxis} Primary={SharedResourcesWrapper.MovingPrimary} Secondary={SharedResourcesWrapper.MovingSecondary}"); + return movingAxis; } public bool Slewing