I have been using the sequencer for years and it has worked well.
But this is the first time I have tried to include a block to automatically do a meridian flip, then carry on.
The logic of this seems straightforward.
The start guiding line could be placed in a couple of different places, other than what I tried here.
I have everything running before I get to this step. Target, tracking, guiding, camera settings, etc.
But when it gets to the conditional step monitoring the meridian, it fails when it tries to start guiding again.
This is with an HEQ5 mount connected and controlled using ASCOM.
Got any idea why it fails at the start guiding step?
SEQUENCE
SAVE MOUNT COORDINATES
LOOP 4 TIMES
PRESERVE CAMERA SETTINGS
FOCUSER CONNECT
SET EXPOSURE TO 1
SET GAIN TO 350
AUTOFOCUS OFFSET -50 TO 50 STEP COUNT 9 BACKLASH 100
END PRESERVE
PERIODIC "Meridian Handling Steps" WHEN WITHIN 0 MINUTES OF MERIDIAN
GUIDING STOP
PRESERVE CAMERA SETTINGS
MOUNT GOTOTARGET
DELAY 5
SET EXPOSURE TO 1
SET GAIN TO 350
MOUNT SOLVEANDSYNC
END PRESERVE
END PERIODIC
GUIDING START **** It's failing here ****
GUIDING DITHER EVERY 4 FRAMES
CAPTURE 30 FRAMES REQUIREGUIDING True
END LOOP
END SEQUENCE
Meridian flip sequence
- admin
- Site Admin
- Posts: 17580
- Joined: Sat Feb 11, 2017 3:52 pm
- Location: Vale of the White Horse, UK
- Contact:
Re: Meridian flip sequence
Hi,
Ok, your guiding is failing because the sequence is missing a 'Monitor Guiding Application' step at the start (it shows in the code as 'GUIDING CONNECT'). This tells SharpCap to start talking to PHD2 - without that, the instruction to start guiding fails because there is no connection.
The other thing I would suggest is to put your 'Periodic' definition at the top of the sequence rather than inside the loop. Once the periodic function is defined it will be checked regularly (between any two sequencer steps and between still frame captures) - there's no need to have it in the loop and it might just be part of the problem.
You probably also want to put a 'GUIDING START' at the end of the periodic handler too - that will mean that when it exits from the periodic it is back in the same state as when it started.
cheers,
Robin
Ok, your guiding is failing because the sequence is missing a 'Monitor Guiding Application' step at the start (it shows in the code as 'GUIDING CONNECT'). This tells SharpCap to start talking to PHD2 - without that, the instruction to start guiding fails because there is no connection.
The other thing I would suggest is to put your 'Periodic' definition at the top of the sequence rather than inside the loop. Once the periodic function is defined it will be checked regularly (between any two sequencer steps and between still frame captures) - there's no need to have it in the loop and it might just be part of the problem.
You probably also want to put a 'GUIDING START' at the end of the periodic handler too - that will mean that when it exits from the periodic it is back in the same state as when it started.
cheers,
Robin
Re: Meridian flip sequence
Thanks Robin, I will try that!
Re: Meridian flip sequence
Ok I've tried some changes.
The following sequence appears to run right past the meridian without doing anything.
I think it actually captured long enough for the mount to trigger a flip itself, because it ultimately stalled because of no guiding, but it had mechanically flipped.
Do you see anything wrong with this?
SEQUENCE
STILL MODE
GUIDING CONNECT
GUIDING START
MOUNT CURRENT TO TARGET
PERIODIC "Meridian Handling Steps" WHEN WITHIN -1 MINUTES OF MERIDIAN
GUIDING STOP
PRESERVE CAMERA SETTINGS
SET EXPOSURE TO 1
SET GAIN TO 350
MOUNT GOTOTARGET
MOUNT SOLVEANDSYNC
END PRESERVE
GUIDING START
END PERIODIC
LOOP 4 TIMES
PRESERVE CAMERA SETTINGS
FOCUSER CONNECT
SET EXPOSURE TO 1
SET GAIN TO 350
AUTOFOCUS OFFSET -50 TO 50 STEP COUNT 9 BACKLASH 100
END PRESERVE
GUIDING DITHER EVERY 4 FRAMES
CAPTURE 30 FRAMES REQUIREGUIDING True
END LOOP
END SEQUENCE
The following sequence appears to run right past the meridian without doing anything.
I think it actually captured long enough for the mount to trigger a flip itself, because it ultimately stalled because of no guiding, but it had mechanically flipped.
Do you see anything wrong with this?
SEQUENCE
STILL MODE
GUIDING CONNECT
GUIDING START
MOUNT CURRENT TO TARGET
PERIODIC "Meridian Handling Steps" WHEN WITHIN -1 MINUTES OF MERIDIAN
GUIDING STOP
PRESERVE CAMERA SETTINGS
SET EXPOSURE TO 1
SET GAIN TO 350
MOUNT GOTOTARGET
MOUNT SOLVEANDSYNC
END PRESERVE
GUIDING START
END PERIODIC
LOOP 4 TIMES
PRESERVE CAMERA SETTINGS
FOCUSER CONNECT
SET EXPOSURE TO 1
SET GAIN TO 350
AUTOFOCUS OFFSET -50 TO 50 STEP COUNT 9 BACKLASH 100
END PRESERVE
GUIDING DITHER EVERY 4 FRAMES
CAPTURE 30 FRAMES REQUIREGUIDING True
END LOOP
END SEQUENCE
Re: Meridian flip sequence
Looking a little further, it may have flipped in sharpcap, but only after the 30 frame block was finished.
And if it did, it would not continue for the next 30 frame block for loss of guiding.
So either it didn't flip, but the mount did, or it flipped but the solveandsync didn't work.
And if it did, it would not continue for the next 30 frame block for loss of guiding.
So either it didn't flip, but the mount did, or it flipped but the solveandsync didn't work.