Focuser issue uncovers log "can of worms"

A place to report problems and bugs in 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

Please also read about Troubleshooting USB Issues before posting.

*** Please do not post license keys - please report any problems with licensing to 'admin' by private message ***

Please include the following details in any bug report:

* Version of SharpCap
* Camera and other hardware being user
* Operating system version
* Contents of the SharpCap log after the problem has occurred.
[If SharpCap crashes, please send the bug report when prompted instead of including the log]
User avatar
admin
Site Admin
Posts: 17530
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Focuser issue uncovers log "can of worms"

#11

Post by admin »

Ok, so just in case I forget to reply to this on Monday, I added what I hope is a workaround for this to the code.

If the focuser has 'CPWI' in the name then the workaround will activate, and the moving status as far as SharpCap is concerned will be set back to 'not moving' if the position has been constant for at least 3 seconds and at at least 3 successive reads from the ASCOM driver - that will happen even if the ASCOM driver says that it is still moving. You would probably notice this as a few seconds delay after the move completes before the UI reactivates when this is happening - if the ASCOM driver behaves itself then the delay won't be there.

cheers,

Robin
ChrisR Oz
Posts: 224
Joined: Tue Sep 28, 2021 11:03 am
Location: Melbourne

Re: Focuser issue uncovers log "can of worms"

#12

Post by ChrisR Oz »

Perfect. I'll give it a try.
Cheers, Chris.
Celestron EdgeHD 8, Focuser; iOptron CEM120 mount on pier; Starlight Xpress AO, OAG and Filter Wheel; ZWO 2400MC, 294MC/294MM Pro and 174MM mini; SharpCap Pro, PHD2, Televue Powermate 2x, Baader Neodymium, Astronomik CLS-CCD, ZWO UV/IR, Duo filters
ChrisR Oz
Posts: 224
Joined: Tue Sep 28, 2021 11:03 am
Location: Melbourne

Re: Focuser issue uncovers log "can of worms"

#13

Post by ChrisR Oz »

Hi Robin,

Tried out SC 4.1.13010 and it worked brilliantly.

Checking the logs (attached) did reveal some bogus IsMoving=True from the CPWI Focuser. But SC recovered from that, as planned, and continued working. In the direction where the backlash is handled by SC, there is a strange delay before SC does the final backlash move. This is where the IsMoving=True situation has appeared an SC takes action to ignore the frozen status. As the short backlash move is short, CPWI does not seem to freeze then and the IsMoving status recovers after that.

Thanks Robin!
Cheers, Chris.
Attachments
ASCOM_Focuser_log_SharpCap_2025_01_15_0-keep.txt
CPWI ASCOM log
(589.6 KiB) Downloaded 19 times
SC log with frozen IsMoving.log
SC log
(145.66 KiB) Downloaded 11 times
Celestron EdgeHD 8, Focuser; iOptron CEM120 mount on pier; Starlight Xpress AO, OAG and Filter Wheel; ZWO 2400MC, 294MC/294MM Pro and 174MM mini; SharpCap Pro, PHD2, Televue Powermate 2x, Baader Neodymium, Astronomik CLS-CCD, ZWO UV/IR, Duo filters
User avatar
admin
Site Admin
Posts: 17530
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Focuser issue uncovers log "can of worms"

#14

Post by admin »

Hi Chris,

glad that worked as planned - the slight pause while it waits long enough to be convinced that the previous larger move had finished is to be expected with the new workaround. I suppose that I could do something to reduce the amount of time waited if the current position actually matches the target of the last movement sent to the focuser, although that starts to risk overriding any settle time allowance built into the focuser driver itself.

cheers,

Robin
ChrisR Oz
Posts: 224
Joined: Tue Sep 28, 2021 11:03 am
Location: Melbourne

Re: Focuser issue uncovers log "can of worms"

#15

Post by ChrisR Oz »

Hi Robin,

No, the small delay (perhaps 1-2s) is nothing, and will work well like this.

Thanks again.
Cheers, Chris.
Celestron EdgeHD 8, Focuser; iOptron CEM120 mount on pier; Starlight Xpress AO, OAG and Filter Wheel; ZWO 2400MC, 294MC/294MM Pro and 174MM mini; SharpCap Pro, PHD2, Televue Powermate 2x, Baader Neodymium, Astronomik CLS-CCD, ZWO UV/IR, Duo filters
Post Reply