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 LX200GotoNova::SendPulseCmd(int direction, int duration_msec)
{
int nbytes_write = 0;
char cmd[10];
int duration_time_msec=duration_msec;
while (duration_time_msec>0)
{
if (duration_time_msec>999) duration_msec=999;
else duration_msec=duration_time_msec;
switch (direction)
{
case LX200_NORTH:
sprintf(cmd, ":Mn%03d#", duration_msec);
break;
case LX200_SOUTH:
sprintf(cmd, ":Ms%03d#", duration_msec);
break;
case LX200_EAST:
sprintf(cmd, ":Me%03d#", duration_msec);
break;
case LX200_WEST:
sprintf(cmd, ":Mw%03d#", duration_msec);
break;
default:
return 1;
}
duration_time_msec = duration_time_msec - duration_msec;
DEBUGF(INDI::Logger::DBG_DEBUG, "CMD (%s)", cmd);
tty_write_string(PortFD, cmd, &nbytes_write);
}
tcflush(PortFD, TCIFLUSH);
return 0;
}
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.