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.
int check_lx200_connection(int in_fd)
{
int i=0;
const char *ack = ":V#";
char MountAlign[64];
int nbytes_read=0;
DEBUGDEVICE(lx200Name, INDI::Logger::DBG_DEBUG, "Testing telescope's connection using ACK...");
if (in_fd <= 0) return -1;
for (i=0; i < 2; i++)
{
if (write(in_fd, ack, 3) < 0) return -1;
tty_read(in_fd, MountAlign, 6, LX200_TIMEOUT, &nbytes_read);
if (nbytes_read == 6)
{
DEBUGDEVICE(lx200Name, INDI::Logger::DBG_DEBUG, "Testing successful!");
return 0;
}
usleep(50000);
}
DEBUGDEVICE(lx200Name, INDI::Logger::DBG_DEBUG, "Failure. Telescope is not responding to ACK!");
return -1;
}
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.