Automatic plate resolution from SharpCap.

Somewhere to ask questions about the best way to use SharpCap
Forum rules
‍

If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs
User avatar
pastorgalactico
Posts: 96
Joined: Tue Jul 06, 2021 2:49 pm
Location: España
Contact:

Re: Automatic plate resolution from SharpCap.

#31

Post by pastorgalactico »

Gemini's artificial intelligence tells me this:


import time

# 1. Check if the mount is connected
if SharpCap.Mounts.SelectedMount is None:

print("Error: Connect the ESP32go first in the Hardware tab.")
else:

mount = SharpCap.Mounts.SelectedMount

print("Connected to: " + mount.Name)

# 2. Start Plate Solve

# This command uses the configuration you have in:

# File -> Settings -> Plate Solve (e.g., ASTAP or PlateSolve2)

print("Starting Plate Solve...")

# The SolveAndSync method does 3 things:

# Captures, solves, and synchronizes the coordinates in the ESP32go's ASCOM

result = SharpCap.Transforms.PlateSolveAndSync()

if result:

print("Success! The ESP32go has been synchronized.")

# Optional: Re-center the object to ensure accuracy

# mount.SlewToTarget()

else:

print("The Plate Solve failed. Check the exposure or focus.")
J.Tapioles (Pastorgalactico)
Obs.Orion Cod.MPC R50
TL 16" F4.5 Giordano.Picgoto ESP32go V5
Refr 120mm F5
Ocul. Explorer 82º.
Barl. X2-X3- X5 Explorer
Planetario informático Guia 9.1
Player One Uranus C .
Cor. coma HR explorer.
Redu. focal 0.67 Braña.
User avatar
pastorgalactico
Posts: 96
Joined: Tue Jul 06, 2021 2:49 pm
Location: España
Contact:

Re: Automatic plate resolution from SharpCap.

#32

Post by pastorgalactico »

Hello;

For me, it would probably be easier to use the NINA program for this.

But I'd prefer to use SharpCap so I don't have to use any other programs for this.
J.Tapioles (Pastorgalactico)
Obs.Orion Cod.MPC R50
TL 16" F4.5 Giordano.Picgoto ESP32go V5
Refr 120mm F5
Ocul. Explorer 82º.
Barl. X2-X3- X5 Explorer
Planetario informático Guia 9.1
Player One Uranus C .
Cor. coma HR explorer.
Redu. focal 0.67 Braña.
User avatar
pastorgalactico
Posts: 96
Joined: Tue Jul 06, 2021 2:49 pm
Location: España
Contact:

Re: Automatic plate resolution from SharpCap.

#33

Post by pastorgalactico »

The easiest solution for my needs would certainly be to keep pressing the button to perform plate solvent, given the difficulties I've encountered.

Regards
J.Tapioles (Pastorgalactico)
Obs.Orion Cod.MPC R50
TL 16" F4.5 Giordano.Picgoto ESP32go V5
Refr 120mm F5
Ocul. Explorer 82º.
Barl. X2-X3- X5 Explorer
Planetario informático Guia 9.1
Player One Uranus C .
Cor. coma HR explorer.
Redu. focal 0.67 Braña.
Jean-Francois
Posts: 852
Joined: Sun Oct 13, 2019 10:52 am
Location: Germany

Re: Automatic plate resolution from SharpCap.

#34

Post by Jean-Francois »

Hello,
Would it be so difficult to write that script and implement it in SharpCap?
I certainly wouldn't be able to do it alone.
Difficult ? No, but you need perseverance and the will to do it.
It is not done in five minutes or five days ... it is more five weeks with every day work on it.
I did it ... and other million of Python user (or other language). Note that I'm still learning after 7 years of programming script for SharpCap.
I did in the "far" past some programming with my HP48 calculator or other small school project in C or Pascal !

For the Gemini code ... it is a begin.
The missing part is the "trigger" to start the plate solve when the GOTO (commanded from extern program) finish.
You can try to modify the prompt to add the trigger.

Regards,
Jean-Francois
User avatar
pastorgalactico
Posts: 96
Joined: Tue Jul 06, 2021 2:49 pm
Location: España
Contact:

Re: Automatic plate resolution from SharpCap.

#35

Post by pastorgalactico »

Hello;
For what I'm going to use it for—astrometria and observing some stellar occultations by asteroids—I'll just keep pressing the button and that's it.

Regards
J.Tapioles (Pastorgalactico)
Obs.Orion Cod.MPC R50
TL 16" F4.5 Giordano.Picgoto ESP32go V5
Refr 120mm F5
Ocul. Explorer 82º.
Barl. X2-X3- X5 Explorer
Planetario informático Guia 9.1
Player One Uranus C .
Cor. coma HR explorer.
Redu. focal 0.67 Braña.
Jean-Francois
Posts: 852
Joined: Sun Oct 13, 2019 10:52 am
Location: Germany

Re: Automatic plate resolution from SharpCap.

#36

Post by Jean-Francois »

Hello,

Concerning the asteroid occultation ... do you know my script or the script from Michael Camilleri ?

Jean-Francois
User avatar
admin
Site Admin
Posts: 17530
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Automatic plate resolution from SharpCap.

#37

Post by admin »

Hi,

I'm afraid that my take on this feature idea is still the same - that anything trying to do this would be prone to either false positives (plate solve and recenter when the users intent was not a new target GOTO) or false negatives (not doing it when the user wanted it to happen), or even possibly both.

For a particular user who always works in a particular way, it might be possible to make something via scripting that largely worked, but as a general feature in SharpCap it would break far too often for it to be viable for me to add it (features that appear broken to large number of users are generally better off not happening at all)...

One thing that would be workable I think is a third option in the SharpCap 'Goto Catalog Target/Co-ordinates' tool - as well as the options to choose a target from the catalog and to enter co-ordinates, the third option would be

'Goto mount target co-ordinates at <TARGET co-ordinates>'

That way, if your planetarium transfers the target co-ordinates to the ASCOM driver as discussed above, SharpCap will then pick those co-ordinates up automatically and give a way to kick off a GOTO from within SharpCap to those co-ordinates with the plate solve included.

Of course, it doesn't really succeed in the goal of reducing total mouse clicks, since you would have to swap to SharpCap, select 'Tools' then 'Goto catalog target...' then OK.

cheers,

Robin
User avatar
pastorgalactico
Posts: 96
Joined: Tue Jul 06, 2021 2:49 pm
Location: España
Contact:

Re: Automatic plate resolution from SharpCap.

#38

Post by pastorgalactico »

Hello;

Thank you all for your help. The only thing I'm going to try is the plate solvin integrated into the SharpCap to see if it's faster than the ASTAP, although I also find the ASTAP fast and effective.
With the ASTAP, the field of view at a 1279mm focal length with the Uranus C is about 30' x 17'.
I'll continue using the method of pressing the button to center the object in the image, and that should solve it.
Jean-Francois, I'm not familiar with your script about asteroid occultation.
I have performed some occultations and this is to find out ephemerides and such.

Regards.
Attachments
capturada.jpg
capturada.jpg (869 KiB) Viewed 470 times
capturada1.jpg
capturada1.jpg (540.38 KiB) Viewed 470 times
J.Tapioles (Pastorgalactico)
Obs.Orion Cod.MPC R50
TL 16" F4.5 Giordano.Picgoto ESP32go V5
Refr 120mm F5
Ocul. Explorer 82º.
Barl. X2-X3- X5 Explorer
Planetario informático Guia 9.1
Player One Uranus C .
Cor. coma HR explorer.
Redu. focal 0.67 Braña.
Post Reply