Redesigned the Altitude and Azimuth readings to use the Right Ascension and Declination co-ordinates and perform the transformation using the date and site details from the scope. This will correct the problem of the Altitude reading from the handset being incorrect.

This commit is contained in:
2019-05-18 23:50:55 +01:00
parent cf5a6c72fe
commit cf28ecc7c2
9 changed files with 506 additions and 19 deletions
+5 -5
View File
@@ -43,12 +43,12 @@ namespace ASCOM
// TODO add more code to test the driver.
device.Connected = true;
//Console.WriteLine($"Altitute {device.Altitude}");
//Console.WriteLine($"Dec {device.Declination}");
device.SlewToAltAz(30, 45);
Console.WriteLine($"Ra {device.RightAscension}");
Console.WriteLine($"Dec {device.Declination}");
Console.WriteLine($"Altitude {device.Altitude}");
Console.WriteLine($"Azimuth {device.Azimuth}");
device.Connected = false;
Console.WriteLine("Press Enter to finish");
Console.ReadLine();