<div dir="ltr">Hello all,<div><br></div><div>Let me explain again what is perhaps going on. The Scheduler can not handle calibration failures UNLESS it is explicitly performing a guiding step BEFORE Capture starts.</div><div><br></div><div>Once capture starts, the scheduler does not check or recognize at all calibration failures. Therefore, IF a calibration failure post meridian flip. This is supposed to abort the capture module, right? So why wasn't capture aborted? If capture is aborted, the scheduler can then handle this. So I think we have to look into that direction.</div><div><br></div><div>Note: I'm sending this to <a href="mailto:kstars-devel@kde.org">kstars-devel@kde.org</a>, it's better to use the mailing list to discuss this since everyone subbed to it.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>--</div><div>Best Regards,<br>Jasem Mutlaq<br></div><div><br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 8, 2020 at 12:56 AM Hy Murveit <<a href="mailto:murveit@gmail.com">murveit@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Eric et al,</div><div><br></div><div>Not clear on how this works, but the code is copied below.</div><div>Note the emit newStatus().</div><div>What is the state change you are referring to?</div><div><br></div><div>FWIW, I've included the code snippet below (pretty complicated code to follow--there's a state machine in guide.cpp -- I guess that's either controlling the internal guider or PHD2), and there's a calibration state machine in internalguider.cpp. From what I can tell, I don't think it's the issue you described, but I'm not too familiar with these state machines, nor the scheduler.</div><div><br></div><div>Hy</div><br><div><br></div><div><b>From internalguider.cpp, line 505</b><br>void InternalGuider::processCalibration()<br>{<br> pmath->performProcessing();<br><br> <span style="background-color:rgb(255,255,0)">if (pmath->isStarLost())</span><br> {<br> emit newLog(i18n("Lost track of the guide star. Try increasing the square size or reducing pulse duration."));<br> reset();<br><br> calibrationStage = CAL_ERROR;<br> <span style="background-color:rgb(255,255,0)">emit newStatus(Ekos::GUIDE_CALIBRATION_ERROR);</span><br> emit calibrationUpdate(GuideInterface::CALIBRATION_MESSAGE_ONLY, i18n("Calibration Failed: Lost guide star."));<br> return;<br> }<br></div><div> ...</div><div><br></div><div><b>From internalguider.cpp, line 542</b><br></div><div>void InternalGuider::reset()<br>{<br> state = GUIDE_IDLE;<br> //calibrationStage = CAL_IDLE;<br> connect(guideFrame, SIGNAL(trackingStarSelected(int, int)), this, SLOT(trackingStarSelected(int, int)),<br> Qt::UniqueConnection);<br>}<br></div><div><br></div><div><b>guide.cpp:2381</b></div><div> connect(guider, &Ekos::GuideInterface::newStatus, this, &Ekos::Guide::setStatus);<br></div><div><br></div><div><b>guide.cpp:1935</b></div><div>void Guide::setStatus(Ekos::GuideState newState)<br>{<br> if (newState == state)<br> {<br> // pass through the aborted state<br> if (newState == GUIDE_ABORTED)<br> emit newStatus(state);<br> return;<br> }<br><br> GuideState previousState = state;<br><br><span style="background-color:rgb(255,255,0)"> state = newState;<br> emit newStatus(state);</span><br><br> switch (state)<br> {<br> ... </div><div><br> case GUIDE_IDLE:<br> case GUIDE_CALIBRATION_ERROR:<br> setBusy(false);<br> manualDitherB->setEnabled(false);<br> break;<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 7, 2020 at 12:31 PM Eric Dejouhanet <<a href="mailto:eric.dejouhanet@gmail.com" target="_blank">eric.dejouhanet@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="background-color:rgb(255,255,255);background-image:initial;line-height:initial"><div id="gmail-m_5834904163721927886gmail-m_-3979288803047069353response_container_BBPPID" style="outline:none" dir="auto"> <div name="BB10" id="gmail-m_5834904163721927886gmail-m_-3979288803047069353BB10_response_div_BBPPID" dir="auto" style="width:100%"> Could it be that the emission of the guide failure is done before Guide's state is changed? That was the case for Focus, and Scheduler's immediate reaction for a new autofocus was thus rejected.</div><div name="BB10" id="gmail-m_5834904163721927886gmail-m_-3979288803047069353BB10_response_div_BBPPID" dir="auto" style="width:100%"><br></div><div name="BB10" id="gmail-m_5834904163721927886gmail-m_-3979288803047069353BB10_response_div_BBPPID" dir="auto" style="width:100%">Unfortunately I haven't had time to check the log yet. </div> <div id="gmail-m_5834904163721927886gmail-m_-3979288803047069353blackberry_signature_BBPPID" name="BB10" dir="auto"> <div id="gmail-m_5834904163721927886gmail-m_-3979288803047069353_signaturePlaceholder_BBPPID" name="BB10" dir="auto"><p dir="ltr"><a href="mailto:eric.dejouhanet@gmail.com" target="_blank">eric.dejouhanet@gmail.com</a> - <a href="https://astronomy.dejouha.net" target="_blank">https://astronomy.dejouha.net</a></p></div> </div></div><div id="gmail-m_5834904163721927886gmail-m_-3979288803047069353_original_msg_header_BBPPID" dir="auto"> <table width="100%" style="border-spacing:0px;display:table;outline:none"><tbody><tr><td colspan="2" style="padding:initial;font-size:initial;text-align:initial"> <div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in;font-family:Tahoma,"BB Alpha Sans","Slate Pro";font-size:10pt"> <div id="gmail-m_5834904163721927886gmail-m_-3979288803047069353from"><b>De:</b> <a href="mailto:murveit@gmail.com" target="_blank">murveit@gmail.com</a></div><div id="gmail-m_5834904163721927886gmail-m_-3979288803047069353sent"><b>Envoyé:</b> 7 décembre 2020 21:04</div><div id="gmail-m_5834904163721927886gmail-m_-3979288803047069353to"><b>À:</b> <a href="mailto:mutlaqja@ikarustech.com" target="_blank">mutlaqja@ikarustech.com</a></div><div id="gmail-m_5834904163721927886gmail-m_-3979288803047069353reply_to"><b>Répondre à:</b> <a href="mailto:hy@murveit.com" target="_blank">hy@murveit.com</a></div><div id="gmail-m_5834904163721927886gmail-m_-3979288803047069353cc"><b>Cc:</b> <a href="mailto:hy@murveit.com" target="_blank">hy@murveit.com</a>; <a href="mailto:sterne-jaeger@t-online.de" target="_blank">sterne-jaeger@t-online.de</a>; <a href="mailto:eric.dejouhanet@gmail.com" target="_blank">eric.dejouhanet@gmail.com</a></div><div id="gmail-m_5834904163721927886gmail-m_-3979288803047069353subject"><b>Objet:</b> Re: scheduler issue</div></div></td></tr></tbody></table> <br> </div><div name="BB10" dir="auto" style="background-image:initial;line-height:initial;outline:none"><div dir="ltr">It was indeed after a meridian flip.<div>Jo also sent the .analyze file to me (attached) and here's a zoom'ed in screen shot from the time of the issue.</div><div><br></div><div><img alt="Screen Shot 2020-12-07 at 12.02.19 PM.png" width="562" height="295"><br></div><div><br></div><div>Hy</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 7, 2020 at 11:43 AM Jasem Mutlaq <<a href="mailto:mutlaqja@ikarustech.com" target="_blank">mutlaqja@ikarustech.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello Hy,</div><div><br></div><div>Do you know why it was calibrating? this wasn't after a meridian flip correct? What's happening is that scheduler handles calibration failures IF it was in the steps..i.e.</div><div><br></div><div>Track --> Focus --> Align --> Guide --> Capture. If at "Guide" calibration fails then it handles that. Right now, after capturing, the scheduler just LOGS the guide calibration results but does not handle them. Capture module should have been aborted if calibration fails, and then that would have been handled by the scheduler... but again, what would cause calibration in the middle of capture? meridian flip?</div><div><br></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div>--</div><div>Best Regards,<br>Jasem Mutlaq<br></div><div><br></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 6, 2020 at 11:30 PM Hy Murveit <<a href="mailto:murveit@gmail.com" target="_blank">murveit@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Eric, Jasem,<br><div><br></div><div>Reporting a possible scheduler bug.</div><div><br></div><div>Jo (@ElCorazon) sent me a log</div><div><a href="https://www.dropbox.com/s/n8icvn90fhunjfl/log_20-53-07.txt.gz?dl=0" style="font-family:verdana" target="_blank">https://www.dropbox.com/s/n8icvn90fhunjfl/log_20-53-07.txt.gz?dl=0</a><br></div><div>which I analyzed and my conclusion is that star detection caused guider calibration to fail at 01:15:54 (see below)</div><div><br></div><div>[2020-12-05T01:15:54.614 CST INFO ][ <a href="http://org.kde.kstars.ekos.guide" target="_blank">org.kde.kstars.ekos.guide</a>] - "Lost track of the guide star. Try increasing the square size or reducing pulse duration."<br>[2020-12-05T01:15:54.617 CST DEBG ][ <a href="http://org.kde.kstars.ekos.capture" target="_blank">org.kde.kstars.ekos.capture</a>] - Guiding state changed from "Calibrating" to "Calibration error"<br></div><div><br></div><div>and (ignoring that issue) the scheduler recognized, I suppose, that guider failed</div><div><br></div><div>[2020-12-05T01:15:54.624 CST DEBG ][ <a href="http://org.kde.kstars.ekos.scheduler" target="_blank">org.kde.kstars.ekos.scheduler</a>] - Guide State "Calibration error"<br></div><div><br></div><div>but the scheduler didn't seem to restart the guiding calibration. Basically nothing happens until 1:57:56 when I assume Jo restarted things.</div><div><br></div><div>[2020-12-05T01:57:56.852 CST INFO ][ <a href="http://org.kde.kstars.ekos.scheduler" target="_blank">org.kde.kstars.ekos.scheduler</a>] - Scheduler is stopping...<br></div><div><br></div><div>I assume the scheduler should try and restart the guider, but there are no .guide nor .scheduler messages between 1:15:54 and 1:57:56</div><div><br></div><div>Hy</div></div>
</blockquote></div>
</blockquote></div>
</div></div></blockquote></div>
</blockquote></div>