Added log message for when a pulse guide move is completed that will show the difference.
This commit is contained in:
@@ -1368,6 +1368,12 @@ namespace ASCOM.Meade.net
|
|||||||
LogMessage("PulseGuide", $"pulse guide direction {direction} duration {duration}");
|
LogMessage("PulseGuide", $"pulse guide direction {direction} duration {duration}");
|
||||||
CheckConnected("PulseGuide");
|
CheckConnected("PulseGuide");
|
||||||
|
|
||||||
|
var coordinatesBeforeMove = new EquatorialCoordinates
|
||||||
|
{
|
||||||
|
RightAscension = RightAscension,
|
||||||
|
Declination = Declination
|
||||||
|
};
|
||||||
|
|
||||||
string d = string.Empty;
|
string d = string.Empty;
|
||||||
switch (direction)
|
switch (direction)
|
||||||
{
|
{
|
||||||
@@ -1428,6 +1434,14 @@ namespace ASCOM.Meade.net
|
|||||||
//Returns: Nothing
|
//Returns: Nothing
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var coordinatesAfterMove = new EquatorialCoordinates
|
||||||
|
{
|
||||||
|
RightAscension = RightAscension,
|
||||||
|
Declination = Declination
|
||||||
|
};
|
||||||
|
|
||||||
|
LogMessage("PulseGuide", $"Complete - RA change: {_utilitiesExtra.HoursToHMS(coordinatesAfterMove.RightAscension - coordinatesAfterMove.RightAscension)} Dec change: {_utilitiesExtra.HoursToHMS(coordinatesAfterMove.Declination - coordinatesBeforeMove.Declination)}");
|
||||||
}
|
}
|
||||||
|
|
||||||
public double RightAscension
|
public double RightAscension
|
||||||
|
|||||||
Reference in New Issue
Block a user