Guidescope alignment error estimation by user click in preview window
Closed this issue · 4 comments
bgottula commented
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:
- Point at bright star using one of the blind target types
- 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
- User clicks on the star in the guidescope preview window. A marker is placed in the window to show the selected location.
- User presses some key to confirm the selection
This should be implemented as an optional procedure at the end of normal alignment.
bgottula commented
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.
bgottula commented
This has been implemented on the branch guidescope-offset-testing. The procedure is as follows:
- Perform alignment like usual.
- 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. - Run
capture
to get a preview window for the main OTA camera. - Use the D-pad to nudge the position of the target until it is centered in the main OTA camera.
- 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.
- 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.