Bi-monthly release with minor bug fixes and improvements
bool sendPulses = true;
// If within 90% of max pulse repeatedly, let's abort
if (out->pulse_length[GUIDE_RA] >= (0.95 * Options::rAMaximumPulse()) ||
out->pulse_length[GUIDE_DEC] >= (0.95 * Options::dECMaximumPulse()))
{
sendPulses = false;
m_highPulseCounter++;
}
else
m_highPulseCounter=0;
if (m_starLostCounter+m_highPulseCounter > 3)
{
qCDebug(KSTARS_EKOS_GUIDE) << "m_starLostCounter" << m_starLostCounter
<< "m_highPulseCounter" << m_highPulseCounter;
emit newLog(i18n("Lost track of the guide star. Searching for guide stars..."));
reacquireTimer.start();
rememberState = state;
state = GUIDE_REACQUIRE;
emit newStatus(state);
return true;
}
if (sendPulses)
{
emit newPulse(out->pulse_dir[GUIDE_RA] , out->pulse_length[GUIDE_RA],
out->pulse_dir[GUIDE_DEC], out->pulse_length[GUIDE_DEC]);
// Wait until pulse is over before capturing an image
const int waitMS = qMax(out->pulse_length[GUIDE_RA], out->pulse_length[GUIDE_DEC]);
// If less than 250ms, then capture immediately
if (waitMS > 250)
// Issue frame requests 50ms before timeout to account for
// propogation delays
QTimer::singleShot(waitMS - 50, [&]() {emit frameCaptureRequested();});
else
emit frameCaptureRequested();
}
else
emit frameCaptureRequested();
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.
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.