[ACP-670]  Use Telescope V2 SideOfPier to flip if available
Type Enhancement
Priority Medium
Severity Minor
Component AcquireImages script
Fixed In Version [6.0.26.0 Hot Fix 2
Versions Affected [6.0.16.0 Hot Fix 1
Severity Closed
Resolution Complete
Reported By Bob Denny
Resources Bob Denny
Start Date 7/26/2011

Description
If the mount supports commanded flip via writing to SideOfPier, use it. This will theoretically avoid a quirk in the Gemini where it will not slew/flip if it's already pointing at the target (i.e. it imaged past the flip point and does not have to wait).

See this Comm Center thread (Rob Hawley) and the attached patched 'rjh' AcquireImages.js and the original at the time he patched it (6.0.5), also attached.

Comments
8/25/2011 9:49:57 AM   Bob Denny
Everyone reports OK now. Closed!
8/15/2011 1:33:52 PM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 269
Affected files /trunk/Scripts/AcquireImages.js (Modified)
Check-in comment This reflects Rob Hawley's simplification, testing, but with additional logic for scopes that don't report pier side, etc. Probably final for HF2. GEM:670
8/8/2011 11:27:46 AM   Bob Denny
SVN Comment
Author rbdenny
Repository svn+ssh://rbdenny@a2_svn_dc3/home/rbdenny/svn/astro/acp
SVN Revision 268
Affected files /trunk/ACP Help/relnotes.htm (Modified)
/trunk/Scripts/AcquireImages.js (Modified)
Check-in comment Make auto-flip logic more robust. Detect unreported flip failure and use explicit flip command to force it, if available. GEM:670
8/8/2011 11:23:01 AM   Bob Denny
Hawley reported a hole in my changes, and I realized there was an even more robust way to handle this. I reworked it, tested here, and will send it out for another round of tests. This time I am committing the changed AcquireImages to SVN as I believe this is a good change not just a Gemini hack.
7/27/2011 11:36:18 AM   Bob Denny
Removed Rob Hawley's AcquireImages attachments, added my first crack at the newlogic.
7/26/2011 10:31:07 PM   Bob Denny
OK, tests of the new logic look good. Need to get into the hands of Jim Jones and Rob Hawley.
7/26/2011 3:16:54 PM   Bob Denny
Dang, the CanSetPierSide property in the ACP Telescope object  (which is also used within console scripts, etc.) has a bug in the CanSetPierSide property. It is wired to the real telescope's CanSetGuideRates property. See ACP-671 (related)
7/26/2011 11:00:15 AM   Bob Denny
AH! I have another idea... Only use the force-flip if the mount is already pointing to within a half-degree of the target coordinates. If it has to slew further than that, it should flip as a result of the slew. This is much simpler... we'll see...
7/26/2011 10:29:21 AM   Bob Denny
Well, this is going to end up being a "software victory over hardware".
  1. The waits happen with tracking off, so the mount will be pointing possibly far east of the flip point, therefore
  2. Before commanding the flip with SideOfPier - xx, you still have to slew to the target coordinates, which should already be past the flip point. The mount should flip as a result.
  3. So now we're going to check to see if it doesn't flip even though slewed-to and the location is wst of the flip point, and
  4. If it failed the slew, force the flip with SideOfPier = xx
  5. Then you have to slew again to the target coordinates, and
  6. Thanks to Rob, you have to turn Dome slaving off during the commanded flip. 
This is not a great "solution" and will help only the Gemini as far as I can tell now. So I need to talk to Paul K.