seeing-things/track

Guidescope alignment error estimation by user click in preview window

Closed this issue · 4 comments

Until #207 is implemented, we need an easy way to manually estimate the guidescope to OTA alignment error. Do this by allowing the user to click the appropriate location in a preview window.

The way this would work in practice is as follows:

  1. Point at bright star using one of the blind target types
  2. User manually applies offsets with the gamepad until the star is visible and reasonably centered in the main OTA camera preview window
    • User may need to manually start the capture program to preview the main OTA camera view, since I don't think it is possible to have two preview windows open and responsive in track since OpenCV wants all the GUI stuff to run in the main thread
  3. User clicks on the star in the guidescope preview window. A marker is placed in the window to show the selected location.
  4. User presses some key to confirm the selection

This should be implemented as an optional procedure at the end of normal alignment.

So far I have added an optional mouse event callback to the CameraTarget OpenCV preview window which updates the location of a red cross marker on the preview window on clicks.

This has been implemented on the branch guidescope-offset-testing. The procedure is as follows:

  1. Perform alignment like usual.
  2. Execute track --fuse --fusion-gain=0 --meridian-side=[east or west] star [name-of-bright-star], which should get the bright star well within the field of view of the guidescope camera.
  3. Run capture to get a preview window for the main OTA camera.
  4. Use the D-pad to nudge the position of the target until it is centered in the main OTA camera.
  5. Click on the star in the guidescope preview window with as much precision as possible. Clicking will save the new guidescope alignment offset to the mount model parameters on disk.
  6. To confirm the alignment restart the program, this time with sensor fusion active: track --fuse --meridian-side=[east or west] star [name-of-bright-star]. Confirm that the star is well centered in the main OTA camera.

This work will not be merged, at least for now, in anticipation of #207 which may replace much of it.

This has been superseded by #207, which fully automates the entire process.