Scripting automatic planetary capture in 4.2
Posted: Thu Jul 02, 2026 5:23 pm
Robin,
First, huge thanks for continued development of SharpCap. Second, my apologies for not doing much in the way of testing the 4.2 beta. We're into the summer here, which means a lot of moisture rising off the Gulf of Mexico and few clear nights, and there are no planets I am interested in imaging at hours I am able to image.
Which brings me to the subject of the thread. I see that you have implemented scripting control of Feature Tracking, I believe via python scripting. So I would like to talk about developing a procedure for automated planetary capture.
1) My overall goal is automatic planetary imaging that can commence at an arbitrary time in the middle of the night while I am not manually operating the scope. I am not married to any particular method of achieving this, so if there is some better way to accomplish that goal than what I assume about how to do it, please don't answer my dumb questions but rather tell me the right way to do it. ;O)
2) My scope is an f/10 11" SCT riding on a CGEM with an ASI676MC (or 678, but close enough). This is an FOV of < 0.15°, and hence is not reliably plate solvable even with the highest resolution database. Hence, I use an electronic finder for polar alignment and plate solving. That finder is a 30mm guide scope that has no rings, so it cannot be precisely aligned, and requires the Offset Goto feature. This is accurate enough to place the target planet onto the sensor of the main imaging camera, but is not accurate enough to place the target dead center on the sensor.
3) The process I am envisioning goes like this:
- The scope sits in Park until the target achieves a given altitude (e.g. 20 degrees). The e-finder camera can be the open camera.
- The mount slews to the target using the Offset Goto feature to put it onto the sensor of the main camera.
- The finder camera is closed and the main camera is opened and the max ROI is selected.
- Feature Tracking is opened, its last calibration is loaded, and started with the correct options to guide the center of mass to the center of the ROI selected.
- When the center of mass is within some tolerance of the center of the ROI, the ROI is changed to the capture ROI.
- In previous versions of SharpCap, changing the ROI turns off Feature Tracking. Hopefully this behavior can be changed. Otherwise Feature Tracking will have to be restarted.
- A sequence is started that includes an autofocus and a number of captures, repeated (e.g. autofocus, then record 4 5 minute videos, repeat).
- After some criterion is reached (i.e. some specified wall clock time), stop capturing, stop Feature Tracking, and park the mount.
So my questions are, can the 4.2 beta currently do all of the above, or if not, somehow still achieve the same ultimate goal? If so, how do I accomplish this? Sequencer? Python? A combination? I will probably need a lot of help figuring out how to do this, as I am a novice (though not a complete neophyte) at both. If it cannot currently be done, can I humbly request that whatever enhancements are required make it into your stack of stuff to work on? Saturn is currently visible in the wee hours, so there's no time like the present for me to figure this out.
Thanks for your time and consideration.
Mike
First, huge thanks for continued development of SharpCap. Second, my apologies for not doing much in the way of testing the 4.2 beta. We're into the summer here, which means a lot of moisture rising off the Gulf of Mexico and few clear nights, and there are no planets I am interested in imaging at hours I am able to image.
Which brings me to the subject of the thread. I see that you have implemented scripting control of Feature Tracking, I believe via python scripting. So I would like to talk about developing a procedure for automated planetary capture.
1) My overall goal is automatic planetary imaging that can commence at an arbitrary time in the middle of the night while I am not manually operating the scope. I am not married to any particular method of achieving this, so if there is some better way to accomplish that goal than what I assume about how to do it, please don't answer my dumb questions but rather tell me the right way to do it. ;O)
2) My scope is an f/10 11" SCT riding on a CGEM with an ASI676MC (or 678, but close enough). This is an FOV of < 0.15°, and hence is not reliably plate solvable even with the highest resolution database. Hence, I use an electronic finder for polar alignment and plate solving. That finder is a 30mm guide scope that has no rings, so it cannot be precisely aligned, and requires the Offset Goto feature. This is accurate enough to place the target planet onto the sensor of the main imaging camera, but is not accurate enough to place the target dead center on the sensor.
3) The process I am envisioning goes like this:
- The scope sits in Park until the target achieves a given altitude (e.g. 20 degrees). The e-finder camera can be the open camera.
- The mount slews to the target using the Offset Goto feature to put it onto the sensor of the main camera.
- The finder camera is closed and the main camera is opened and the max ROI is selected.
- Feature Tracking is opened, its last calibration is loaded, and started with the correct options to guide the center of mass to the center of the ROI selected.
- When the center of mass is within some tolerance of the center of the ROI, the ROI is changed to the capture ROI.
- In previous versions of SharpCap, changing the ROI turns off Feature Tracking. Hopefully this behavior can be changed. Otherwise Feature Tracking will have to be restarted.
- A sequence is started that includes an autofocus and a number of captures, repeated (e.g. autofocus, then record 4 5 minute videos, repeat).
- After some criterion is reached (i.e. some specified wall clock time), stop capturing, stop Feature Tracking, and park the mount.
So my questions are, can the 4.2 beta currently do all of the above, or if not, somehow still achieve the same ultimate goal? If so, how do I accomplish this? Sequencer? Python? A combination? I will probably need a lot of help figuring out how to do this, as I am a novice (though not a complete neophyte) at both. If it cannot currently be done, can I humbly request that whatever enhancements are required make it into your stack of stuff to work on? Saturn is currently visible in the wee hours, so there's no time like the present for me to figure this out.
Thanks for your time and consideration.
Mike