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,
|
UtcDateTime = UTCDate,
|
||||||
SiteLongitude = SiteLongitude,
|
SiteLongitude = SiteLongitude,
|
||||||
SiteLatitude = SiteLatitude,
|
SiteLatitude = SiteLatitude,
|
||||||
EquatorialCoordinates = new EquatorialCoordinates
|
EquatorialCoordinates = GetTelescopeRaAndDec()
|
||||||
{
|
|
||||||
RightAscension = RightAscension,
|
|
||||||
Declination = Declination
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
double hourAngle = _astroMaths.RightAscensionToHourAngle(altitudeData.UtcDateTime, altitudeData.SiteLongitude,
|
double hourAngle = _astroMaths.RightAscensionToHourAngle(altitudeData.UtcDateTime, altitudeData.SiteLongitude,
|
||||||
@@ -860,6 +856,15 @@ namespace ASCOM.Meade.net
|
|||||||
return altAz;
|
return altAz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private EquatorialCoordinates GetTelescopeRaAndDec()
|
||||||
|
{
|
||||||
|
return new EquatorialCoordinates
|
||||||
|
{
|
||||||
|
RightAscension = RightAscension,
|
||||||
|
Declination = Declination
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
public double ApertureArea
|
public double ApertureArea
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
@@ -1368,13 +1373,7 @@ 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
|
var coordinatesBeforeMove = GetTelescopeRaAndDec();
|
||||||
{
|
|
||||||
RightAscension = RightAscension,
|
|
||||||
Declination = Declination
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (_userNewerPulseGuiding && duration < 10000)
|
if (_userNewerPulseGuiding && duration < 10000)
|
||||||
{
|
{
|
||||||
@@ -1464,13 +1463,10 @@ namespace ASCOM.Meade.net
|
|||||||
//});
|
//});
|
||||||
}
|
}
|
||||||
|
|
||||||
var coordinatesAfterMove = new EquatorialCoordinates
|
var coordinatesAfterMove = GetTelescopeRaAndDec();
|
||||||
{
|
|
||||||
RightAscension = RightAscension,
|
|
||||||
Declination = Declination
|
|
||||||
};
|
|
||||||
|
|
||||||
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
|
public double RightAscension
|
||||||
|
|||||||
Reference in New Issue
Block a user