Added logging to MoxingAxis call to see if a telescope axis is moving

This commit is contained in:
2021-12-13 14:09:16 +00:00
parent 6786db65fe
commit eda3a53d6f
+7 -1
View File
@@ -2320,9 +2320,15 @@ namespace ASCOM.Meade.net
private bool MovingAxis() private bool MovingAxis()
{ {
if (SharedResourcesWrapper.IsGuiding) if (SharedResourcesWrapper.IsGuiding)
{
LogMessage("MovingAxis", $"Result = false (guiding is true)");
return false; 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 public bool Slewing