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.
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.
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;
//DEBUGF(telescope->DBG_MOUNT, "%s() : Axis = %c", __FUNCTION__, AxisCmd[axis]);
//dispatch_command(NotInstantAxisStop, axis, nullptr);
//read_eqmod();
if (axis == Axis1)
motorrunning = &RARunning;
else
motorrunning = &DERunning;
//wait.tv_sec = 0;
//wait.tv_nsec = 100000000; // 100ms
//ReadMotorStatus(axis);
//while (*motorrunning)
//{
// nanosleep(&wait, nullptr);
// ReadMotorStatus(axis);
//}
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.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
## this is probably in response to the second, spurious slew command
[14:10:10.650601] :f1. [14:10:10.651333] =101.
[14:10:10.651754] :G130. [14:10:10.652651] =.
[14:10:10.652836] :f1. [14:10:10.653530] =501.
[14:10:10.653844] :I1BA0000. [14:10:10.655067] =.
[14:10:10.655282] :J1. [14:10:10.656078] =.
[14:10:10.656259] :f1. [14:10:10.656958] =501.
[14:10:11.650969] :j1. [14:10:11.652099] =08387D.
[14:10:11.652672] :j2. [14:10:11.653672] =97BE7B.
[14:10:11.654226] :f1. [14:10:11.654882] =101.
[14:10:11.655379] :f2. [14:10:11.655995] =101.
[14:10:12.658263] :j1. [14:10:12.659286] =A54D7E.
[14:10:12.660084] :j2. [14:10:12.661261] =97BE7B.
[14:10:12.661986] :f1. [14:10:12.662842] =101.
## this is probably when I turned off the mount power
[14:10:12.663561] :f2. [14:10:12.664345] =101.............8...l.............
[14:10:13.666533] :j1. [14:10:13.667306] j.
if(*motorrunning)
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.