smart-underworld / seestar_alp

Complete Control and Automation for Seestar S50
Other
83 stars 36 forks source link

BUG AutoFocus in Scheduler #226

Closed darkshades58 closed 1 month ago

darkshades58 commented 1 month ago

If you set autofocus as first step in schedule, then a mosaic, the scope never moves to target at the completion of autofocus

YungKC commented 1 month ago

Do you have logs on this?

On Fri, Sep 13, 2024, 7:19 PM darkshades58 @.***> wrote:

If you set autofocus as first step in schedule, then a mosaic, the scope never moves to target at the completion of autofocus

— Reply to this email directly, view it on GitHub https://github.com/smart-underworld/seestar_alp/issues/226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADWZ5EZHA2ONXCVOPAQQTLZWOMJTAVCNFSM6AAAAABOGMSTJSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDKOJTGY3TINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

YungKC commented 1 month ago

Autofocus does not work with newer firmwares from app v2.0+

On Fri, Sep 13, 2024, 7:43 PM Kai Yung @.***> wrote:

Do you have logs on this?

On Fri, Sep 13, 2024, 7:19 PM darkshades58 @.***> wrote:

If you set autofocus as first step in schedule, then a mosaic, the scope never moves to target at the completion of autofocus

— Reply to this email directly, view it on GitHub https://github.com/smart-underworld/seestar_alp/issues/226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADWZ5EZHA2ONXCVOPAQQTLZWOMJTAVCNFSM6AAAAABOGMSTJSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDKOJTGY3TINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

darkshades58 commented 1 month ago

Kai

Thanks for the quick response.

Working on pulling the right logs Firmware is 2.76. I have not updated Was just setting up in EQ mode Ran Startup sequence in SSC Used App to do HC, then slewed to Sadr in app and did sync Started photo session in app to get dark frames. Cancelled after 20 sec Came into desktop Set up schedule action,local_time,timer_sec,try_count,target_name,is_j2000,ra,dec,is_use_lp_filter,session_time_sec,ra_num,dec_num,panel_overlap_percent,gain,is_use_autofocus,heater,nokey,selected_panels auto_focus,,,1,,,,,,,,,,,,,, start_mosaic,,,,NGC 6992,True,20h56m19.0s,+31d44m36.0s,True,3600,2,1,20,80,False,,, start_mosaic,,,,M 31,True,00h42m44.3s,+41d16m7.5s,False,10800,3,2,20,80,False,,, start_mosaic,,,,M 33,True,01h33m50.9s,+30d39m36.6s,False,3600,1,1,100,80,False,,, start_mosaic,,,,M45,True,03h46m24.2s,+24d06m50.0s,False,7200,2,2,20,80,False,,,

Started schedule. Stats page showed stacking Waited a few min and flipped to live view Image was of Sadr Opened app and went to the sky atlas The blue square was still on Sadr

I restarted and was letting it continue imaging while I set up my account to file the bug

Let me try to find right section of logs to forward.

Jeff

From: YungKC @.> Sent: Friday, September 13, 2024 9:49 PM To: smart-underworld/seestar_alp @.> Cc: Jeff Culbertson @.>; Author @.> Subject: Re: [smart-underworld/seestar_alp] BUG AutoFocus in Scheduler (Issue #226)

Autofocus does not work with newer firmwares from app v2.0+

On Fri, Sep 13, 2024, 7:43 PM Kai Yung @.***> wrote:

Do you have logs on this?

On Fri, Sep 13, 2024, 7:19 PM darkshades58 @.***> wrote:

If you set autofocus as first step in schedule, then a mosaic, the scope never moves to target at the completion of autofocus

— Reply to this email directly, view it on GitHub https://github.com/smart-underworld/seestar_alp/issues/226, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADWZ5EZHA2ONXCVOPAQQTLZWOMJTAVCNFSM6AAAAABOGMSTJSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDKOJTGY3TINY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://github.com/smart-underworld/seestar_alp/issues/226#issuecomment-2350799787, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BLJAQ4Q4A4IJIGJ55E33LR3ZWOP2HAVCNFSM6AAAAABOGMSTJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQG44TSNZYG4. You are receiving this because you authored the thread.Message ID: @.***>

YungKC commented 1 month ago

Did you pull the latest from our GitHub repo? I had a fix for this not too long ago. ~ a week?

On Fri, Sep 13, 2024, 8:29 PM darkshades58 @.***> wrote:

Kai

Thanks for the quick response.

Working on pulling the right logs Firmware is 2.76. I have not updated Was just setting up in EQ mode Ran Startup sequence in SSC Used App to do HC, then slewed to Sadr in app and did sync Started photo session in app to get dark frames. Cancelled after 20 sec Came into desktop Set up schedule action,local_time,timer_sec,try_count,target_name,is_j2000,ra,dec,is_use_lp_filter,session_time_sec,ra_num,dec_num,panel_overlap_percent,gain,is_use_autofocus,heater,nokey,selected_panels

auto_focus,,,1,,,,,,,,,,,,,, start_mosaic,,,,NGC 6992,True,20h56m19.0s,+31d44m36.0s,True,3600,2,1,20,80,False,,, start_mosaic,,,,M 31,True,00h42m44.3s,+41d16m7.5s,False,10800,3,2,20,80,False,,, start_mosaic,,,,M 33,True,01h33m50.9s,+30d39m36.6s,False,3600,1,1,100,80,False,,, start_mosaic,,,,M45,True,03h46m24.2s,+24d06m50.0s,False,7200,2,2,20,80,False,,,

Started schedule. Stats page showed stacking Waited a few min and flipped to live view Image was of Sadr Opened app and went to the sky atlas The blue square was still on Sadr

I restarted and was letting it continue imaging while I set up my account to file the bug

Let me try to find right section of logs to forward.

Jeff

From: YungKC @.> Sent: Friday, September 13, 2024 9:49 PM To: smart-underworld/seestar_alp @.> Cc: Jeff Culbertson @.>; Author @.> Subject: Re: [smart-underworld/seestar_alp] BUG AutoFocus in Scheduler (Issue #226)

Autofocus does not work with newer firmwares from app v2.0+

On Fri, Sep 13, 2024, 7:43 PM Kai Yung @.***> wrote:

Do you have logs on this?

On Fri, Sep 13, 2024, 7:19 PM darkshades58 @.***> wrote:

If you set autofocus as first step in schedule, then a mosaic, the scope never moves to target at the completion of autofocus

— Reply to this email directly, view it on GitHub https://github.com/smart-underworld/seestar_alp/issues/226, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AADWZ5EZHA2ONXCVOPAQQTLZWOMJTAVCNFSM6AAAAABOGMSTJSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDKOJTGY3TINY>

. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub< https://github.com/smart-underworld/seestar_alp/issues/226#issuecomment-2350799787>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/BLJAQ4Q4A4IJIGJ55E33LR3ZWOP2HAVCNFSM6AAAAABOGMSTJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQG44TSNZYG4>.

You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/smart-underworld/seestar_alp/issues/226#issuecomment-2350812062, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADWZ5HMNEYPEWMI3FBTD5DZWOUQJAVCNFSM6AAAAABOGMSTJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHAYTEMBWGI . You are receiving this because you commented.Message ID: @.***>

darkshades58 commented 1 month ago

Yes running on a Raspberry.. did the ./update.sh before I started tonight

Here is the section of log I believe related

fed4-41ec-b7b7-3b2a2029b7d5'}], 'state': 'Stopped', 'current_item_id': '', 'cur_mosaic_panel_ra': -1, 'cur_mosaic_panel_dec': -1}, 'ErrorNumber': 0, 'ErrorMessage': ''} 2024-09-14T01:47:35.136 INFO FrontMainThread Twilight times: Cache file exists. 2024-09-14T01:47:35.136 INFO FrontMainThread Twilight times: Cache file is current, using cache file. 2024-09-14T01:47:41.557 INFO SchedulerThread.jeffc-s50 jeffc-s50: playing sound... 2024-09-14T01:47:42.557 INFO SchedulerThread.jeffc-s50 schedule started ... 2024-09-14T01:47:42.557 INFO SchedulerThread.jeffc-s50 jeffc-s50: focusing try 1 of 1... 2024-09-14T01:47:42.558 INFO SchedulerThread.jeffc-s50 start auto focus... 2024-09-14T01:47:49.406 INFO ALPReceiveMessageThread.jeffc-s50 jeffc-s50 state AutoFocus : working 2024-09-14T01:47:52.364 INFO ALPReceiveMessageThread.jeffc-s50 jeffc-s50 state AutoFocus : working 2024-09-14T01:47:55.329 INFO ALPReceiveMessageThread.jeffc-s50 jeffc-s50 state AutoFocus : working 2024-09-14T01:47:58.282 INFO ALPReceiveMessageThread.jeffc-s50 jeffc-s50 state AutoFocus : working 2024-09-14T01:48:01.272 INFO ALPReceiveMessageThread.jeffc-s50 jeffc-s50 state AutoFocus : working 2024-09-14T01:48:04.224 INFO ALPReceiveMessageThread.jeffc-s50 jeffc-s50 state AutoFocus : working 2024-09-14T01:48:07.174 INFO ALPReceiveMessageThread.jeffc-s50 jeffc-s50 state AutoFocus : working 2024-09-14T01:48:10.134 INFO ALPReceiveMessageThread.jeffc-s50 jeffc-s50 state AutoFocus : working 2024-09-14T01:48:13.098 INFO ALPReceiveMessageThread.jeffc-s50 jeffc-s50 state AutoFocus : working 2024-09-14T01:48:14.038 INFO ALPReceiveMessageThread.jeffc-s50 jeffc-s50 state AutoFocus : complete 2024-09-14T01:48:14.038 INFO ALPReceiveMessageThread.jeffc-s50 Goto Final State: {'Event': 'AutoFocus', 'Timestamp': '1644.788941717', 'state': 'complete', 'result': {'last_point': [0, 0.0]}} 2024-09-14T01:48:14.565 INFO SchedulerThread.jeffc-s50 jeffc-s50: Auto focus completed! 2024-09-14T01:48:14.616 INFO SchedulerThread.jeffc-s50 received parameters: 2024-09-14T01:48:14.616 INFO SchedulerThread.jeffc-s50 target : NGC 6992 2024-09-14T01:48:14.617 INFO SchedulerThread.jeffc-s50 RA : 20.955638487931772 2024-09-14T01:48:14.617 INFO SchedulerThread.jeffc-s50 Dec : 31.839223619402443 2024-09-14T01:48:14.617 INFO SchedulerThread.jeffc-s50 use LP filter : True 2024-09-14T01:48:14.617 INFO SchedulerThread.jeffc-s50 session time : 3600 2024-09-14T01:48:14.617 INFO SchedulerThread.jeffc-s50 RA num panels : 2 2024-09-14T01:48:14.617 INFO SchedulerThread.jeffc-s50 Dec num panels: 1 2024-09-14T01:48:14.617 INFO SchedulerThread.jeffc-s50 overlap % : 20 2024-09-14T01:48:14.617 INFO SchedulerThread.jeffc-s50 gain : 80 2024-09-14T01:48:14.617 INFO SchedulerThread.jeffc-s50 use autofocus : False 2024-09-14T01:48:14.617 INFO SchedulerThread.jeffc-s50 select panels : 2024-09-14T01:48:14.618 INFO MosaicThread.jeffc-s50 mosaic goto for panel 11, to location (20.93209610707876, 31.839223619402443) 2024-09-14T01:48:14.720 INFO MosaicThread.jeffc-s50 jeffc-s50: going to target... NGC 6992_11 20.932096107078763 31.839223619402443, with dec offset 0 2024-09-14T01:49:23.107 INFO FrontMainThread Twilight times: Cache file exists. 2024-09-14T01:49:23.107 INFO FrontMainThread Twilight times: Cache file is current, using cache file. 2024-09-14T01:49:24.666 INFO ALPMainThread jeffc-s50: stopping slew... 2024-09-14T01:49:24.667 INFO ALPMainThread jeffc-s50: stop stacking... 2024-09-14T01:49:24.667 INFO ALPMainThread jeffc-s50: playing sound... 2024-09-14T01:49:32.671 INFO ALPMainThread Scheduler is not running while trying to stop!

From: YungKC @.> Sent: Friday, September 13, 2024 10:38 PM To: smart-underworld/seestar_alp @.> Cc: Jeff Culbertson @.>; Author @.> Subject: Re: [smart-underworld/seestar_alp] BUG AutoFocus in Scheduler (Issue #226)

Did you pull the latest from our GitHub repo? I had a fix for this not too long ago. ~ a week?

On Fri, Sep 13, 2024, 8:29 PM darkshades58 @.<mailto:@.>> wrote:

Kai

Thanks for the quick response.

Working on pulling the right logs Firmware is 2.76. I have not updated Was just setting up in EQ mode Ran Startup sequence in SSC Used App to do HC, then slewed to Sadr in app and did sync Started photo session in app to get dark frames. Cancelled after 20 sec Came into desktop Set up schedule action,local_time,timer_sec,try_count,target_name,is_j2000,ra,dec,is_use_lp_filter,session_time_sec,ra_num,dec_num,panel_overlap_percent,gain,is_use_autofocus,heater,nokey,selected_panels

auto_focus,,,1,,,,,,,,,,,,,, start_mosaic,,,,NGC 6992,True,20h56m19.0s,+31d44m36.0s,True,3600,2,1,20,80,False,,, start_mosaic,,,,M 31,True,00h42m44.3s,+41d16m7.5s,False,10800,3,2,20,80,False,,, start_mosaic,,,,M 33,True,01h33m50.9s,+30d39m36.6s,False,3600,1,1,100,80,False,,, start_mosaic,,,,M45,True,03h46m24.2s,+24d06m50.0s,False,7200,2,2,20,80,False,,,

Started schedule. Stats page showed stacking Waited a few min and flipped to live view Image was of Sadr Opened app and went to the sky atlas The blue square was still on Sadr

I restarted and was letting it continue imaging while I set up my account to file the bug

Let me try to find right section of logs to forward.

Jeff

From: YungKC @.<mailto:@.>> Sent: Friday, September 13, 2024 9:49 PM To: smart-underworld/seestar_alp @.<mailto:@.>> Cc: Jeff Culbertson @.<mailto:@.>>; Author @.<mailto:@.>> Subject: Re: [smart-underworld/seestar_alp] BUG AutoFocus in Scheduler (Issue #226)

Autofocus does not work with newer firmwares from app v2.0+

On Fri, Sep 13, 2024, 7:43 PM Kai Yung @.<mailto:@.>> wrote:

Do you have logs on this?

On Fri, Sep 13, 2024, 7:19 PM darkshades58 @.<mailto:@.>> wrote:

If you set autofocus as first step in schedule, then a mosaic, the scope never moves to target at the completion of autofocus

— Reply to this email directly, view it on GitHub https://github.com/smart-underworld/seestar_alp/issues/226, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AADWZ5EZHA2ONXCVOPAQQTLZWOMJTAVCNFSM6AAAAABOGMSTJSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDKOJTGY3TINY>

. You are receiving this because you are subscribed to this thread.Message ID: @.<mailto:@.>>

— Reply to this email directly, view it on GitHub< https://github.com/smart-underworld/seestar_alp/issues/226#issuecomment-2350799787>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/BLJAQ4Q4A4IJIGJ55E33LR3ZWOP2HAVCNFSM6AAAAABOGMSTJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQG44TSNZYG4>.

You are receiving this because you authored the thread.Message ID: @.<mailto:@.>>

— Reply to this email directly, view it on GitHub https://github.com/smart-underworld/seestar_alp/issues/226#issuecomment-2350812062, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADWZ5HMNEYPEWMI3FBTD5DZWOUQJAVCNFSM6AAAAABOGMSTJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHAYTEMBWGI . You are receiving this because you commented.Message ID: @.<mailto:@.>>

— Reply to this email directly, view it on GitHubhttps://github.com/smart-underworld/seestar_alp/issues/226#issuecomment-2350814412, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BLJAQ4UUTUYIPIF6ZRB6O3DZWOVPZAVCNFSM6AAAAABOGMSTJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJQHAYTINBRGI. You are receiving this because you authored the thread.Message ID: @.**@.>>

smart-underworld commented 1 month ago

I just tested this flow, with the latest main code. Works as expected. Will close this bug. Please reopen if you still have problems with this flow.