<table><tr><td style="">chrisrowland added a comment.
</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/D29008">View Revision</a></tr></table><br /><div><div><p>I've submitted a diff with most of the changes requested incorporated.</p>
<p>i'm sticking on the QString issue I think it' the right way to go.</p></div></div><br /><div><strong>INLINE COMMENTS</strong><div><div style="margin: 6px 0 12px 0;"><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D29008#inline-165816">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">capture.cpp:6831</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">Prototype <tt style="background: #ebebeb; font-size: 13px;">char const * Capture::MFStageString(MFStage stage) const</tt> is more appropriate?<br />
That function has no interest in providing a QString object.<br />
Also, these strings are used in logs, so you may want to output something more friendly?</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">I don't see a need to change this.<br />
QString is used to return strings everywhere else, see getSequencequeueStatus() etc.</p>
<p style="padding: 0; margin: 8px;">I have chosen to use the enum names as the string because these then match what I see in the code. To a large extent logs are for the developer, to help them debug the code remotely so using the same name in the code and the log is friendly.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D29008#inline-165820">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">mount.cpp:620</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">The block above seems OK in the southern hemisphere. Always difficult to wrap my head around it :)<br />
Is the limit inclusive, or defined as the HA value which triggers a flip? Pedantic again, but >= instead of >?</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">Yes, I thought about it and I think it's OK in the South, but will need checking of course. It's using hour angle comparisons and they should be hemisphere agnostic.</p>
<p style="padding: 0; margin: 8px;">I'm not inclined to be that worried about the difference between < and <=, it only matters for less than a millisecond.</p>
<p style="padding: 0; margin: 8px;">More to the point the code for the PIER_EAST case is broken because of problems with angle comparisons. I've refactored the check and it now seems OK</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D29008#inline-165843">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">mount.cpp:653-654</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">This test is potentially broken by, plus suffers from a race condition from the setTrackEnabled() call at line 636.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">the isTracking line needs moving down to where it's used.</p>
<p style="padding: 0; margin: 8px;">The code turning tracking off is copied from the previous altitude limits code above.<br />
The code from isTracking downwards is almost unchanged from what was there before, I've set the flipDelayHours to 0 and added some debug messages.<br />
So I don't think it's any more broken than it was before, I'd like to leve it for now.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D29008#inline-165848">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">mount.cpp:1123</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">I notice the use of <tt style="background: #ebebeb; font-size: 13px;">auto</tt> here to replace <tt style="background: #ebebeb; font-size: 13px;">bool</tt>. Technically I can't find any definitive reason against it, except maybe the fact that there is a <tt style="background: #ebebeb; font-size: 13px;">if</tt> immediately after. Thus if Slew() changes its prototype, that <tt style="background: #ebebeb; font-size: 13px;">auto</tt> may hide some issues. But, well, pedantic again. <tt style="background: #ebebeb; font-size: 13px;">if Slew() { m_Status = ... ; return true; }</tt> would seem clearer to me.</p>
<p style="padding: 0; margin: 8px;">Also, m_Status is supposed to change from line 653 as a mirror of the telescope status. Is it expected that it will update here, and only when the slew is successful?</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">Changed auto to bool, a slight increase in readability.</p>
<p style="padding: 0; margin: 8px;">I've changed the if statement as you suggest, not sure it makes much difference.</p>
<p style="padding: 0; margin: 8px;">Yes, the status is expected only to be updated if the slew command is successful.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D29008#inline-166228">View Inline</a><span style="color: #4b4d51; font-weight: bold;">chrisrowland</span> wrote in <span style="color: #4b4d51; font-weight: bold;">mount.cpp:1343</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">Not sure what the various times available to me are, a clue would help.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">I guess the simulation time is in KStars::Instance()->data().</p>
<p style="padding: 0; margin: 8px;">This time is used to measure the actual clock time that the mount takes to complete a meridian flip slew. If it's less than the minimum (20 seconds) the flip has failed.<br />
Not sure that using ...data()->ut() would help.</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D29008#inline-165856">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">mount.cpp:1353</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">This log should not be sent if the slew is not successful, should it?</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">Probably not, refactored this if statement</p></div></div><br /><div style="border: 1px solid #C7CCD9; border-radius: 3px;"><div style="padding: 0; background: #F7F7F7; border-color: #e3e4e8; border-style: solid; border-width: 0 0 1px 0; margin: 0;"><div style="color: #74777d; background: #eff2f4; padding: 6px 8px; overflow: hidden;"><a style="float: right; text-decoration: none;" href="https://phabricator.kde.org/D29008#inline-165857">View Inline</a><span style="color: #4b4d51; font-weight: bold;">TallFurryMan</span> wrote in <span style="color: #4b4d51; font-weight: bold;">mount.cpp:1864</span></div>
<div style="margin: 8px 0; padding: 0 12px; color: #74777D;"><p style="padding: 0; margin: 8px;">Same remark as the similar function above.</p></div></div>
<div style="margin: 8px 0; padding: 0 12px;"><p style="padding: 0; margin: 8px;">Same reply!</p></div></div></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R321 KStars</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D29008">https://phabricator.kde.org/D29008</a></div></div><br /><div><strong>To: </strong>chrisrowland, mutlaqja<br /><strong>Cc: </strong>TallFurryMan, wreissenberger, kde-edu, narvaez, apol<br /></div>