<table><tr><td style="">TallFurryMan created this revision.<br />TallFurryMan added reviewers: mutlaqja, wreissenberger.<br />Herald added a project: KDE Edu.<br />Herald added a subscriber: kde-edu.<br />TallFurryMan requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15546">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Fixed dome isMoving property, which was declared as method.<br />
Moved dome movement check to checkJobStage to avoid a lock-up in the case the dome has not finished moving when the mount has.<br />
That lock-up would happen because the dome check was done upon notification of the end of the slew, and that no further notification would come to test the dome again.<br />
Moving that code block also avoids duplicating it for stages "STAGE_SLEWING" and "STAGE_RESLEWING".<br />
Admittedly, when there is no dome in the setup, the next action could be taken directly in the mount callback, but the cost of deferring this to checkJobStage is light.<br />
Moreover the use of the intermediate stages "STAGE_SLEW_COMPLETE" and "STAGE_RESLEWING_COMPLETE" clarifies the code of the state machine.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Use test vector "simple_test_no_twilight".<br />
Without the change, Scheduler starts slewing to the first target and hangs there doing nothing.<br />
With the change, Scheduler completes the first target successfully.<br />
However, observe as Scheduler subsequently selects the same target and hangs there - next issue to tackle!</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R321 KStars</div></div></div><br /><div><strong>BRANCH</strong><div><div>bugfix__dbus_slew_completion (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15546">https://phabricator.kde.org/D15546</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kstars/ekos/auxiliary/dome.h<br />
kstars/ekos/scheduler/scheduler.cpp<br />
kstars/org.kde.kstars.Ekos.Dome.xml</div></div></div><br /><div><strong>To: </strong>TallFurryMan, mutlaqja, wreissenberger<br /><strong>Cc: </strong>kde-edu, narvaez, apol<br /></div>