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.
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.
int setStandardProcedure(int fd, const char * data)
{
char bool_return[2];
int error_type;
int nbytes_write=0, nbytes_read=0;
DEBUGFDEVICE(lx200Name, DBG_SCOPE, "CMD <%s>", data);
if ( (error_type = tty_write_string(fd, data, &nbytes_write)) != TTY_OK)
return error_type;
error_type = tty_read(fd, bool_return, 1, LX200_TIMEOUT, &nbytes_read);
usleep(10000);
tcflush(fd, TCIFLUSH);
usleep(10000);
if (nbytes_read < 1)
return error_type;
if (bool_return[0] == '0')
{
DEBUGFDEVICE(lx200Name, DBG_SCOPE, "CMD <%s> failed.", data);
return -1;
}
DEBUGFDEVICE(lx200Name, DBG_SCOPE, "CMD <%s> successful.", data);
return 0;
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
//int err=0;
/* Slew reads the '0', that is not the end of the slew */
if (Slew(PortFD) < 1)
{
EqNP.s = IPS_ALERT;
IDSetNumber(&EqNP, "Error Slewing to JNow RA %s - DEC %s\n", RAStr, DecStr);
slewError(err);
return false;
}
int err=0;
/* Slew reads the '0', that is not the end of the slew */
if (err = Slew(PortFD))
{
EqNP.s = IPS_ALERT;
IDSetNumber(&EqNP, "Error Slewing to JNow RA %s - DEC %s\n", RAStr, DecStr);
slewError(err);
return false;
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.