Hi,
a few things you can do to improve this...
1) Specify a hint position and a search radius using extra parameters in your call to BlindSolver.Solve - the hint position you can just take from the current co-ordinates of the mount, and a search radius of maybe 15 degrees will limit the search area and the time taken.
2) If the user cancels the plate solve then I think you will get an OperationCancelledException thrown, which you can catch and treat as if the solve had failed.
3) If you want to be able to cancel the operation from your code, you need to create a CancellationTokenSource and pass the Token from that to the call to Solve(...). You can set up the cancellation token source to cancel after a fixed time (say 15s) or potentially cancel from another thread if a new frame arrives or something.
cheers,
Robin
Polar Alignment via Platesolving
-
Jean-Francois
- Posts: 824
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
Re: Polar Alignment via Platesolving
Hello Robin,
Thanks for information ... but, it will be a situation ... you write some words that seems to be easy, but in fact it takes me days to understand and test until something work
I try to have in my script the possibility to have a polar alignment without any computer connection to a mount.
OK in this case it is easy to check if a mount is connected or not. If not, then a full sky plate solve will be perform each time or at least for the first point. The next point can used the preceding solved point as starting point.
The point 1) seems to be easy to code.
Regards,
Jean-Francois
Thanks for information ... but, it will be a situation ... you write some words that seems to be easy, but in fact it takes me days to understand and test until something work
I try to have in my script the possibility to have a polar alignment without any computer connection to a mount.
OK in this case it is easy to check if a mount is connected or not. If not, then a full sky plate solve will be perform each time or at least for the first point. The next point can used the preceding solved point as starting point.
The point 1) seems to be easy to code.
Regards,
Jean-Francois
Re: Polar Alignment via Platesolving
Hi everyone.
Jean, I´m very interesting with your project. How is it going? Do you have a new version?
Best regards!
Jean, I´m very interesting with your project. How is it going? Do you have a new version?
Best regards!
-
Jean-Francois
- Posts: 824
- Joined: Sun Oct 13, 2019 10:52 am
- Location: Germany
Re: Polar Alignment via Platesolving
Hello Nandojoe,
Sorry, but I did not finish my script.
I have a last test version from end May, but I do not remember what I changed.
The main problem is the testing and correction of the "last" bug
I did hundred of tests with the ASCOM Sky Simulator (very good for testing), but the Sky Simulator does not produce star trails.
That is what happen when I perform the mount basis alignment ... the telescope moves a little bit and the stars have trails ... and the Plate Solve software does not find a solution and my script crash.
The point is I can only test a new version of the script with a real sky and my mount/telescope.
OK, you are in the south hemisphere ... so I can see you as "south beta tester"
My script should work in the south hemisphere ... I simulated it one time with the Sky Simulator, but no test on a real sky.
It was sometimes possible to finish the adjustment with my script, but only with very slow movement of the mount (Alt and Az adjustment screws) so that no star trails or other star vibration on the image. If the Plate Solve does not find a solution, then the script crash and you need to start from the beginning.
Regards,
Jean-Francois
Sorry, but I did not finish my script.
I have a last test version from end May, but I do not remember what I changed.
The main problem is the testing and correction of the "last" bug
I did hundred of tests with the ASCOM Sky Simulator (very good for testing), but the Sky Simulator does not produce star trails.
That is what happen when I perform the mount basis alignment ... the telescope moves a little bit and the stars have trails ... and the Plate Solve software does not find a solution and my script crash.
The point is I can only test a new version of the script with a real sky and my mount/telescope.
OK, you are in the south hemisphere ... so I can see you as "south beta tester"
My script should work in the south hemisphere ... I simulated it one time with the Sky Simulator, but no test on a real sky.
It was sometimes possible to finish the adjustment with my script, but only with very slow movement of the mount (Alt and Az adjustment screws) so that no star trails or other star vibration on the image. If the Plate Solve does not find a solution, then the script crash and you need to start from the beginning.
Regards,
Jean-Francois