Added pseudocode for detecting StarPatch firmware
This commit is contained in:
@@ -489,6 +489,7 @@ namespace ASCOM.Meade.net
|
||||
$"Connected to port {_profileProperties.ComPort}. Product: {SharedResourcesWrapper.ProductName} Version:{SharedResourcesWrapper.FirmwareVersion}");
|
||||
|
||||
_useNewerPulseGuiding = IsNewPulseGuidingSupported();
|
||||
_isStarPatch = IsStarPatch();
|
||||
|
||||
LogMessage("Connected Set", $"New Pulse Guiding Supported: {_useNewerPulseGuiding}");
|
||||
IsConnected = true;
|
||||
@@ -599,6 +600,17 @@ namespace ASCOM.Meade.net
|
||||
}
|
||||
}
|
||||
|
||||
private bool IsStarPatch()
|
||||
{
|
||||
//Todo add tests to see if the firmware is star patch.
|
||||
//Check if last character is a letter
|
||||
// lower case = Meade, upper case = StarPatch
|
||||
//If last character is a number
|
||||
// Get case of second to last character
|
||||
// lower case = StarPatch, upper case = Meade
|
||||
return false;
|
||||
}
|
||||
|
||||
private void SendCurrentDateTime(string connect)
|
||||
{
|
||||
if (_profileProperties.SendDateTime)
|
||||
@@ -1529,6 +1541,9 @@ namespace ASCOM.Meade.net
|
||||
if (_useNewerPulseGuiding)
|
||||
canPulseGuide = AlignmentMode != AlignmentModes.algAltAz;
|
||||
|
||||
if (_isStarPatch)
|
||||
canPulseGuide = true;
|
||||
|
||||
LogMessage("CanPulseGuide", $"Get - {canPulseGuide}");
|
||||
return canPulseGuide;
|
||||
}
|
||||
@@ -2290,6 +2305,7 @@ namespace ASCOM.Meade.net
|
||||
}
|
||||
|
||||
private bool _useNewerPulseGuiding = true;
|
||||
private bool _isStarPatch = false;
|
||||
|
||||
public void PulseGuide(GuideDirections direction, int duration)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user