Added support for AtPark and Park
This commit is contained in:
@@ -13,7 +13,9 @@ namespace ASCOM.MeadeAutostar497.Controller
|
||||
double SiteLatitude { get; set; }
|
||||
double SiteLongitude { get; set; }
|
||||
AlignmentModes AlignmentMode { get; set; }
|
||||
bool AtPark { get; }
|
||||
void AbortSlew();
|
||||
void PulseGuide(GuideDirections direction, int duration);
|
||||
void Park();
|
||||
}
|
||||
}
|
||||
@@ -293,6 +293,10 @@ namespace ASCOM.MeadeAutostar497.Controller
|
||||
}
|
||||
}
|
||||
|
||||
private bool _parked = false;
|
||||
|
||||
public bool AtPark => _parked;
|
||||
|
||||
public void AbortSlew()
|
||||
{
|
||||
SerialPort.Command("#:Q#");
|
||||
@@ -335,6 +339,15 @@ namespace ASCOM.MeadeAutostar497.Controller
|
||||
}
|
||||
}
|
||||
|
||||
public void Park()
|
||||
{
|
||||
if (_parked)
|
||||
return;
|
||||
|
||||
_parked = true;
|
||||
_serialPort.Command(":hP#");
|
||||
}
|
||||
|
||||
public bool UserNewerPulseGuiding { get; set; } = true; //todo make this a device setting
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user