×
INDI Library v1.8.7 Released (21 Nov 2020)

Nov. 2020 Release brings significant improvements to streaming and recording videos. Support for new drivers including Estatto focuser and Pegasus falcon rotator.

India driver in python instead of C++

6 months 3 weeks ago
Stefie1987
Fresh Boarder
Fresh Boarder
Posts: 11
More
Topic Author
India driver in python instead of C++ #53714
I am currently working on creating an interface between the indi-server and a costum telescope controller. the telescope controller can be interfaced through RS232 andI have written a simple python script to control the telescope from the terminal. However, I have no idea how to make indi-server, kstars, PHD2, etc. with the telescope controller ...

I have found the driver development tutorial page ( indilib.org/develop/tutorials/184-building-indi-tutorials.html ), but writing an entire driver in C++ is way too much work ...

Is there an easy way to map the RS232 commands, to be accessible through Indi-server?
Would it be possible to write a driver in python? and how ?

Please Log in or Create an account to join the conversation.

6 months 3 weeks ago
knro
Administrator
Administrator
Posts: 8567
Karma: 51
India driver in python instead of C++ #53721
You can do it via Telescope Script driver... i.e. specify the python command for each command. Though writing in C++ is really not that difficult especially since you already have access to ALL the source code for all the drivers to use as a reference.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The following user(s) said Thank You Stefie1987

Please Log in or Create an account to join the conversation.

6 months 2 weeks ago 6 months 2 weeks ago by Stefie1987.
Stefie1987
Fresh Boarder
Fresh Boarder
Posts: 11
More
Topic Author
India driver in python instead of C++ #53797
Thank you for the quick reply. yes , I was looking for something like and indi telescope script driver. However, I can't find any information about it. Could you please provide a link?

Regarding C++, I would really like to write a driver in C++ and I have already looked at existing drivers. However, I have Python ADHS ... which means it will probably take 1000x longer to modify a driver in C++ than just writing it in python ...

Please Log in or Create an account to join the conversation.

6 months 2 weeks ago
knro
Administrator
Administrator
Posts: 8567
Karma: 51
India driver in python instead of C++ #53811
There is no official documentation for the telescope script, just run it and put the path to the python script for each command. I guess you can to check the code to find out what format it is using. If you can write the documentation after that then it would be great for all future users!

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The following user(s) said Thank You Stefie1987

Please Log in or Create an account to join the conversation.

6 months 2 weeks ago
Stefie1987
Fresh Boarder
Fresh Boarder
Posts: 11
More
Topic Author
India driver in python instead of C++ #53864
Thank you very much.
I will will try to do that ... and hopefully find some time to write a documentation.

Please Log in or Create an account to join the conversation.

Time to create page: 0.781 seconds