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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user