Fixed bug in tracking rate get where it always returns lunar when it should be sidereal
This commit is contained in:
@@ -142,7 +142,7 @@ namespace Meade.net.Telescope.UnitTests
|
||||
_sharedResourcesWrapperMock.Setup(x => x.SendString("GL", false)).Returns(() => _testProperties.telescopeTime);
|
||||
_sharedResourcesWrapperMock.Setup(x => x.SendString("GG", false)).Returns(() => _testProperties.telescopeUtcCorrection);
|
||||
|
||||
const string siderealTrackingRate = "60.1";
|
||||
const string siderealTrackingRate = "+60.1";
|
||||
_testProperties.TrackingRate = siderealTrackingRate;
|
||||
_sharedResourcesWrapperMock.Setup(x => x.SendString("GT", false)).Returns(() => _testProperties.TrackingRate);
|
||||
_sharedResourcesWrapperMock.Setup(x => x.SendBlind("TL", false)).Callback(() => _testProperties.TrackingRate = "lunar");
|
||||
|
||||
@@ -2645,7 +2645,7 @@ namespace ASCOM.Meade.net
|
||||
//Current Track Frequency expressed in hertz assuming a synchonous motor design where a 60.0 Hz motor clock
|
||||
// would produce 1 revolution of the telescope in 24 hours.
|
||||
|
||||
DriveRates result = rate == "60.1" ? DriveRates.driveSidereal : DriveRates.driveLunar;
|
||||
DriveRates result = rate == "+60.1" ? DriveRates.driveSidereal : DriveRates.driveLunar;
|
||||
|
||||
LogMessage("TrackingRate Get", $"{rate} {result}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user