Added support for reading Declination
This commit is contained in:
@@ -524,7 +524,7 @@ namespace ASCOM.MeadeAutostar497
|
||||
{
|
||||
get
|
||||
{
|
||||
double declination = 0.0;
|
||||
double declination = _telescopeController.Declination;
|
||||
tl.LogMessage("Declination", "Get - " + utilities.DegreesToDMS(declination, ":", ":"));
|
||||
return declination;
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace ASCOM.MeadeAutostar497.Controller
|
||||
AlignmentModes AlignmentMode { get; set; }
|
||||
bool AtPark { get; }
|
||||
double Azimuth { get; }
|
||||
double Declination { get; }
|
||||
void AbortSlew();
|
||||
void PulseGuide(GuideDirections direction, int duration);
|
||||
void Park();
|
||||
|
||||
@@ -320,7 +320,22 @@ namespace ASCOM.MeadeAutostar497.Controller
|
||||
|
||||
return az;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public double Declination
|
||||
{
|
||||
get
|
||||
{
|
||||
var result = SerialPort.CommandTerminated(":GD#", "#");
|
||||
//:GD# Get Telescope Declination.
|
||||
//Returns: sDD* MM# or sDD*MM’SS#
|
||||
//Depending upon the current precision setting for the telescope.
|
||||
|
||||
double az = DMSToDouble(result);
|
||||
|
||||
return az;
|
||||
}
|
||||
}
|
||||
|
||||
public void AbortSlew()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user