I have a Celestron EdgeHD which via NINA and CPWI I suse for AstroImaging. All works well however I do experience random ‘Telescope Not Connected’ Errors. There seems to be no pattern her and they can occur after several hours or even while I am aligning the telescope. As far as CPWI and ASCOM are concerned the telescope is gone. It does however still respond to the SSAG Guiding commands so I usually let it complete the imaging sequence.
My big issue with this is I can’t leave the scope unattended as it will not respond to ‘park’ commands so if I leave it overnight it may cord wrap or tip over. The only fix for this is to remove power to the Celestron, reapply it and go though alignment all over again.
I have an open ticket with Celestron and we have looked at the CPWI logs and there is nothing that indicates a reason for this behavior.
So I’m looking for a technical solution and I am able to switch off the power to the telescope using an ASCOM plugin and sending a switch command to the Dew Heater to switch off the power to the mount.
I can insert this as an End Sequence Task after the imaging session has completed.
My question is can I trap the disconnect in NINA and set a variable to zero so if it occurs check if it is set bro zero it will end the sequence or if its still set to one then continue to the next target etc etc. Then shut the mount down at the end.. My big question and I’m using PowerUps is how do I detect the disconnect in NINA?