Nautical Dawn/ Nautical Dusk

Discussions, Bug Reports and Issues related to Beta versions of SharpCap
User avatar
DocHighCo
Posts: 52
Joined: Wed Nov 18, 2020 2:20 pm

Re: Nautical Dawn/ Nautical Dusk

#11

Post by DocHighCo »

Hello Robin,

if I see it right the script you show doesn´t start capturing before nautical dusk. That was my point. What if I want to start something before? What if I wanted to start capturing just before nautical dusk and end at astronomical dawn or at any other time?

The code I was trying to run looks like this. It also calls some simple Phyton scripts. The idea was to have a dither function between livestacks without a guide cam via platesolving and recentering the mount . Actually, it works quite well:

Code: Select all

SEQUENCE
    RUN PYTHON FROM C:\Users\HK\Desktop\SharpCapScripts\InitializeDither.py
    MOUNT SOLVEANDSYNC
    RUN PYTHON FROM C:\Users\HK\Desktop\SharpCapScripts\NewDither.py
    DELAY 10
    LIVE STACKING START
    LOOP UNTIL NauticalDawn
        LIVE STACKING RESET
        LIVE STACK FOR 48 FRAMES SAVING AS FITSRawStack32Bit
        LIVE STACKING RESET
        LIVE STACK FOR 48 FRAMES SAVING AS FITSRawStack32Bit
        MOUNT SOLVEANDSYNC
        RUN PYTHON FROM C:\Users\HK\Desktop\SharpCapScripts\NewDither.py
        DELAY 10
    END LOOP
    LIVE STACKING STOP
    MOUNT TRACKING None
END SEQUENCE
Obviously it doesn´t start before nautical dusk. I took this for a general problem with calculating the time of dusk because I started the script before nautical dusk. I still think that a "LOOP UNTIL TimeOfDay" also would improve the flexibility of the sequencer even more. Maybe think about it.

Regards

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

Re: Nautical Dawn/ Nautical Dusk

#12

Post by admin »

Ok, thanks, I am starting to understand now.

I think that this is most relevant to the LOOP versions rather than the WAIT versions, but maybe adding the NEXT option would help in both cases.

I will put this on the todo list for the sequencer.

thanks,

Robin
User avatar
DocHighCo
Posts: 52
Joined: Wed Nov 18, 2020 2:20 pm

Re: Nautical Dawn/ Nautical Dusk

#13

Post by DocHighCo »

Thanks Robin,

now that I understand how it works I could work around it - i.e. one loop that runs until nautical dusk follwed by a loop that runs until nautical dawn. I just thought being able to do it in one loop is more elegant.

Regards

Heiko
Post Reply