Modified how the RA detection is done, and changed the message logs
This commit is contained in:
@@ -847,11 +847,7 @@ namespace ASCOM.Meade.net
|
||||
UtcDateTime = UTCDate,
|
||||
SiteLongitude = SiteLongitude,
|
||||
SiteLatitude = SiteLatitude,
|
||||
EquatorialCoordinates = new EquatorialCoordinates
|
||||
{
|
||||
RightAscension = RightAscension,
|
||||
Declination = Declination
|
||||
}
|
||||
EquatorialCoordinates = GetTelescopeRaAndDec()
|
||||
});
|
||||
|
||||
double hourAngle = _astroMaths.RightAscensionToHourAngle(altitudeData.UtcDateTime, altitudeData.SiteLongitude,
|
||||
@@ -860,6 +856,15 @@ namespace ASCOM.Meade.net
|
||||
return altAz;
|
||||
}
|
||||
|
||||
private EquatorialCoordinates GetTelescopeRaAndDec()
|
||||
{
|
||||
return new EquatorialCoordinates
|
||||
{
|
||||
RightAscension = RightAscension,
|
||||
Declination = Declination
|
||||
};
|
||||
}
|
||||
|
||||
public double ApertureArea
|
||||
{
|
||||
get
|
||||
@@ -1368,13 +1373,7 @@ namespace ASCOM.Meade.net
|
||||
LogMessage("PulseGuide", $"pulse guide direction {direction} duration {duration}");
|
||||
CheckConnected("PulseGuide");
|
||||
|
||||
var coordinatesBeforeMove = new EquatorialCoordinates
|
||||
{
|
||||
RightAscension = RightAscension,
|
||||
Declination = Declination
|
||||
};
|
||||
|
||||
|
||||
var coordinatesBeforeMove = GetTelescopeRaAndDec();
|
||||
|
||||
if (_userNewerPulseGuiding && duration < 10000)
|
||||
{
|
||||
@@ -1464,13 +1463,10 @@ namespace ASCOM.Meade.net
|
||||
//});
|
||||
}
|
||||
|
||||
var coordinatesAfterMove = new EquatorialCoordinates
|
||||
{
|
||||
RightAscension = RightAscension,
|
||||
Declination = Declination
|
||||
};
|
||||
var coordinatesAfterMove = GetTelescopeRaAndDec();
|
||||
|
||||
LogMessage("PulseGuide", $"Complete - RA change: {_utilitiesExtra.HoursToHMS(coordinatesAfterMove.RightAscension - coordinatesAfterMove.RightAscension)} Dec change: {_utilitiesExtra.HoursToHMS(coordinatesAfterMove.Declination - coordinatesBeforeMove.Declination)}");
|
||||
LogMessage("PulseGuide", $"Complete Before RA: {_utilitiesExtra.HoursToHMS(coordinatesBeforeMove.RightAscension)} Dec:{_utilitiesExtra.DegreesToDMS(coordinatesBeforeMove.Declination)}");
|
||||
LogMessage("PulseGuide", $"Complete Before RA: {_utilitiesExtra.HoursToHMS(coordinatesAfterMove.RightAscension)} Dec:{_utilitiesExtra.DegreesToDMS(coordinatesAfterMove.Declination)}");
|
||||
}
|
||||
|
||||
public double RightAscension
|
||||
|
||||
Reference in New Issue
Block a user