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.
struct timespec wait;
wait.tv_sec = 0;
wait.tv_nsec = 100000000; // 100ms
nanosleep(&wait, nullptr);
try
{
if (read_eqmod())
{
if (i > 0)
{
LOGF_WARN("%s() : serial port read failed for %dms (%d retries), verify mount link.", __FUNCTION__, (i*EQMOD_TIMEOUT)/1000, i);
}
struct timespec wait;
wait.tv_sec = 0;
wait.tv_nsec = 100000000; // 100ms
nanosleep(&wait, nullptr);
return true;
}
}
catch (EQModError)
{
// By this time, we just rethrow the error
// JM 2018-05-07 immediately rethrow if GET_FEATURES_CMD
if (i == EQMOD_MAX_RETRY - 1 || cmd == GetFeatureCmd)
throw;
}
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.
void Skywatcher::StopWaitMotor(SkywatcherAxis axis)
{
bool *motorrunning;
struct timespec wait;
ReadMotorStatus(axis);
if (axis == Axis1 && RARunning)
LastRunningStatus[Axis1] = RAStatus;
if (axis == Axis2 && DERunning)
LastRunningStatus[Axis2] = DEStatus;
if (axis == Axis1)
motorrunning = &RARunning;
else
motorrunning = &DERunning;
if (*motorrunning)
{
DEBUGF(telescope->DBG_MOUNT, "%s() : Axis = %c", __FUNCTION__, AxisCmd[axis]);
dispatch_command(NotInstantAxisStop, axis, nullptr);
wait.tv_sec = 0;
wait.tv_nsec = 100000000; // 100ms
ReadMotorStatus(axis);
while (*motorrunning)
{
nanosleep(&wait, nullptr);
ReadMotorStatus(axis);
}
}
}
Please Log in or Create an account to join the conversation.