Bi-monthly release with minor bug fixes and improvements
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
:Sd sDD*MM# or :Sd sDD*MM:SS#
:Sd sDD:MM:SS#
Please Log in or Create an account to join the conversation.
bool LX200AstroPhysics::Sync(double ra, double dec)
{
char syncString[256];
int i = IUFindOnSwitchIndex(&SyncCMRSP);
if (isSimulation() == false && (setAPObjectRA(PortFD, ra) < 0 || (setAPObjectDEC(PortFD, dec)) < 0))
{
EqNP.s = IPS_ALERT;
IDSetNumber(&EqNP, "Error setting RA/DEC. Unable to Sync.");
return false;
}
if (i==0)
{
if (isSimulation() == false && APSyncCM(PortFD, syncString) < 0)
{
EqNP.s = IPS_ALERT;
IDSetNumber(&EqNP, "Synchronization failed.");
return false;
}
}
else
{
if (isSimulation() == false && APSyncCMR(PortFD, syncString) < 0)
{
EqNP.s = IPS_ALERT;
IDSetNumber(&EqNP, "Synchronization failed.");
return false;
}
}
currentRA = ra;
currentDEC = dec;
DEBUGF(INDI::Logger::DBG_DEBUG, "Synchronization successful %s", syncString);
DEBUG(INDI::Logger::DBG_SESSION, "Synchronization successful.");
TrackState = SCOPE_IDLE;
EqNP.s = IPS_OK;
NewRaDec(currentRA, currentDEC);
return true;
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.