GOTO from script and SynScan driver

Discussions on extending SharpCap using the built in Python scripting functionality
Post Reply
Jean-Francois
Posts: 859
Joined: Sun Oct 13, 2019 10:52 am
Location: Germany

GOTO from script and SynScan driver

#1

Post by Jean-Francois »

Hello Robin,

I tested yesterday evening my new script for occultation observation with my camera and telescope on the real sky.

I did first the normal mount settings (equipment: EQ8-Rh, Newton 10" with reducer to F#2.9 and the last SharpCap beta version):
- moved manually to the polar start position
- connected the Synscan Pro driver (1.19.20) and first performed the HOME function
- then 1 star alignment with Castor and centered the star in the QHY174 camera image with the Synscan movement buttons
After that I performed a GOTO with Prism software planetarium to 10µCnc star and I did a Plate solve and recentring ... all that works good.

Then I used my Occultation script and my new functions.
I prepared in advance a text file with the information of a future occultation of the star UCAC4 556-044303 by the (6) Hebe asteroid.

For the GOTO function, I used the function "SharpCap.Mounts.SelectedMount.SlewTo(RA,DEC)" with the star target coordinates.
The result ... it does not move at the correct position ... and after a Plate Solve (from the script) with "SharpCap.Sequencer.RunSequence("MOUNT SOLVEANDSYNC")" the target was not in center.

I check what happen with the planetarium from Prism software ... I remark some strange things.

PlateSolve_centring_2.png
PlateSolve_centring_2.png (866.42 KiB) Viewed 10890 times


Here the corresponding view in Prism:
PlateSolve_centring_3.png
PlateSolve_centring_3.png (68.38 KiB) Viewed 10890 times

To be sure I repeated 2 times with 2 different drivers: Synscan Pro 2.2.0 and ASCOM GSServer. The second Synscan gave me the same wrong result.
The GGServer was more successful ... but sometimes it has strange behaviour.

Here the result with GSServer:
The center of the image is very near the UCAC star (what is the occultation coordinates target).
PlateSolve_centring_4.png
PlateSolve_centring_4.png (529.09 KiB) Viewed 10890 times

For the Synscan test ... the distance coordinates between J2000 and JNow seems to be the differences I see on the images (~ 1m 22s and 3' 28").

I try to investigate if the Synscan Pro "only" uses JNow, but SharpCap does not perform the conversion before sending the coordinates.
Note that I prefer to use the Synscan Pro driver ... it allows to perform the telescope alignment or a GOTO directly from the Synscan software.
The version Synscan 2.2.0 is buggy and I do not like use it (the symbol are too large, the HOME function does not work each time, ...).

Regards,
Jean-Francois

Note that my Occultation script does not refresh after opening the window ... the information in the window is the same in the image "PlateSolve_centring_4 and _2 and _3. The Telescope driver was not actualized.
User avatar
admin
Site Admin
Posts: 17610
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: GOTO from script and SynScan driver

#2

Post by admin »

Hi Jean-Francois,

in general, SharpCap tracks the epoch of a set of RA/Dec co-ordinates and will change between J2000 and JNOW as required. SharpCap will ask the ASCOM driver what epoch it uses and will assume that co-ordinates from the UI are J2000.

However, there are a couple of potential problems to watch out for

1) Some mounts lie about their epoch - the favourite lie is 'I'm J2000' coming from the ASCOM driver but actually being JNOW. EQMOD does this unless you change the settings I think :roll:

2) The scripting API call you are using currently expects co-ordinates in the Epoch that matches the mount. Looking at it, I think that's wrong and I will change it to expecting J2000

So, from the next update, the SlewTo(ra,dec) will expect J2000.

For now, you can do a couple of things...

* Check the value of SharpCap.Mounts.SelectedMount.Epoch - this tells you the epoch that your mount is claiming - if it claims J2000 then check very carefully that the mount driver really is converting J2000 co-ords to JNOW (I have not yet come across a driver that I can prove actually *does* do this)...

* Use code like that below to explicitly tell SharpCap the epoch of the co-ordinates you want

Code: Select all

from SharpCap.Base import RADecPosition, Epoch
radp = RADecPosition(10, 20, Epoch.J2000)
SharpCap.Mounts.SelectedMount.SlewTo(radp)
Hope this helps,

Robin
Jean-Francois
Posts: 859
Joined: Sun Oct 13, 2019 10:52 am
Location: Germany

Re: GOTO from script and SynScan driver

#3

Post by Jean-Francois »

Hello Robin,

I did yesterday additional tests. I will send some results as soon I process it.

Thanks for the explanation. I will check it with my old mount EQ8 and the Synscan Pro software.

For the coordinate conversion, if the problem is "only" a difference between J2000 and J Now, then it could be sufficient to convert before sending the coordinates to the mount. But ... my script should be usable for other people with different mounts.

Regards,
Jean-Francois
Jean-Francois
Posts: 859
Joined: Sun Oct 13, 2019 10:52 am
Location: Germany

Re: GOTO from script and SynScan driver

#4

Post by Jean-Francois »

Hello Robin,

Thanks for the "SharpCap.Mounts.SelectedMount.Epoch" and the code.

I tested it with the ASCOM Telescope Simulator. It is possible to change the Epoch in the ASCOM settings.
It works with the explicit code (if the mount is J2000 or JNow). That is good, I will use it.

Now the question of changing SlewTo(ra,dec) ... I'm not sure that is a good thing for all other script with some GOTO.
If so ... then all the programmers should verify or change their scripts.

I will now test with my EQ8.

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

Re: GOTO from script and SynScan driver

#5

Post by admin »

Hi Jean-Francoise,

good to hear that the explicit epoch worked.

I think that the SlewTo(ra,dec) being J2000 is probably for the best, simply because it is then consistent with everything else in SharpCap that expects J2000 co-ordinates when you specify a location to move to. It's a bit odd at the moment that the scripting SlewTo is different to everything else.

cheers,

Robin
Jean-Francois
Posts: 859
Joined: Sun Oct 13, 2019 10:52 am
Location: Germany

Re: GOTO from script and SynScan driver

#6

Post by Jean-Francois »

Hello Robin,

I tested again and I check the SharpCap.Mounts.SelectedMount.Epoch.

I used the Sky-Simulator (very, very useful software !!) with my mount.
I tested with Synscan Pro and GSServer.

The GSServer allows to set the epoch. I tested J2000 and JNow. SharpCap works with both when I used your last code.
The same with Synscan Pro. It has only one epoch and SharpCap get JNow.

I changed my script with your last code. It works with both driver.


One other point ... I will send a message to GSServer forum too.
I remarked yesterday night that the mount was stopping the tracking during a DEC movement from SharpCap.
That is annoying when you want center an object in the camera. You move in DEC and during the time, the mount drift in RA while the tracking is Off.

And a last question (for today :-)) ... I used "SharpCap.Sequencer.RunSequence("MOUNT SOLVEANDSYNC")" for a plate solve from the script.
Do you have in the mean time a more direct command ?
Or can you say me how to close the window of the Sequencer from the script after the plate solve ?

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

Re: GOTO from script and SynScan driver

#7

Post by admin »

Hi Jean-Francois,

good to hear that the epoch stuff is all working as expected now.

Solve/sync is easier this way

Code: Select all

SharpCap.Mounts.SelectedMount.SolveAndSync()
That way no need to worry about closing the sequencer (which there isn't currently a way to do).

Finally, don't think I can do much about the DEC movement stopping tracking - SharpCap doesn't request that (although it does a fair bit of fancy footwork on RA movement to try to get tracking back to the right setting afterwards). I presume the mount driver itself is pausing tracking due to the declination move.

cheers,

Robin
Jean-Francois
Posts: 859
Joined: Sun Oct 13, 2019 10:52 am
Location: Germany

Re: GOTO from script and SynScan driver

#8

Post by Jean-Francois »

Hello Robin,

It seems that I can test it this evening.

Regards,
Jean-Francois
Post Reply