I am using kstars with Celestron computer driven telescope with kstars-bleeding and all is working properly
I have added separate camera system (fixed, stationary) that detects moving objects and can get the 2D (X,Y) coords of the object using OpenCV and Python on Rpi
I can set it up so that the 2D camera X0,Y0 position aligns with the telescope center FoV by manual adjustements.
How do I send x,y updates to kstars when the camera detects an object, and then keep sending coordinate updates in 2D format to kstars to make the telescope follow the moving object seen in the camera
I am guessing that there is some kind of API to send coordinates to kstars, but not sure on how to convert X,Y from camera to match telescope and also how to scale the telescope to the camera FoV
If this is not possible with kstars, what would be involved in adding this as a feature.
There is an INDI DBus interface that I guess you can use to slew the telescope to an RA/DEC coordinate api.kde.org/kstars/html/group__EkosDBusInterface.html
I personally haven't used these, but there are others on this forum with experience with that.
To do that, you could plate-solve your image, e.g. StellarSolver or Astrometry.net or ASTAP etc.
Then, perhaps use wcslib to translate an image coordinate to a ra/dec coordinate.
You can find an example of using that by trying to understand pixelToWCS in KStars invent.kde.org/education/kstars/-/blob/m...ref_type=heads#L2855
Of course, asking your telescope to slew to an RA/DEC coordinate may not accurately get it there.
So, then you might want to use the EKos plate-solve Align and Solve functionality (probably also available via DBus command)...