×

INDI Library v1.9.0 Released (23 Apr 2021)

Major INDI Library release v1.9.0 bring significant internal changes championed by @pawel-soja to modernize core INDI Library drivers and clients. New drivers for DeepSkyDad Flat Panel & Pegasus devices plus further improvements to PCM8 drivers.

Driver development tutorials

  • Posts: 36
  • Thank you received: 1
The rebuild you suggested worked fine this time. Thank-you
3 months 4 weeks ago #65683

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

  • Posts: 193
  • Thank you received: 23
Tim,
There is a rolloff driver example at github.com/wotalota/indi-rolloffino.git
Might provide ideas on error handling and setting up the Ekos interface.
A couple of Arduino examples on sending back status and error information.
Driver is an edit from the Rolloff driver example.
/Tom
Mach1, TS86SDQ, ASI071, ASI174, OAG, focusPro
3 months 4 weeks ago #65695

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

  • Posts: 169
  • Thank you received: 91
There is also a dummy dome driver in the repo:

github.com/rickbassham/indi-dev-tutorial...vers/indi_dummy_dome
Gayle H Riggsbee Observatory
Charlotte Amateur Astronomers Club

CGX
AT72EDII w/Homemade Moonlite Compatible Arduino Focuser
AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI1600MC-Pro
ZWO ASI1600MM-Pro
ZWO ASI174MM-Mini
ZWO OAG
ZWO EFW
AT2FF
3 months 4 weeks ago #65696

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

  • Posts: 36
  • Thank you received: 1
Thanks everyone.
I think I've got a good idea as to how to do it now. As I'm on standby for work this month with very little chance to get used I should have plenty of time to write the driver. All I then need is some clear skies. Haven't seen any for nearly a month !
3 months 3 weeks ago #65838

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

  • Posts: 36
  • Thank you received: 1
All of this is making sense now and I'm ready to code. But for that I'll need debugging as no ones perfect ;)
I've repeatedly gone through the video tutorials with which I've had two issues. 1) they are very very quick and when your not used to QTCreator I struggled to keep up ! 2) they are for an old version of QTCreator and whilst I think I've set everything up properly I can't get it to work properly.
To start with the breakpoints don't seem to get triggered everytime i run the code. Secondly when I use EKOS to disconnect from the indiserver and then stop the debugger I find in the linux system monitor that indiserver and my driver are still running. Sometimes I can kill them in the system monitor, on others I have to shut down QTCreator as well.
I've spent many hours on this and still cannot get it working. Again any advice would be gratefully received.

Thanks,
Tim
3 months 3 weeks ago #65929

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

  • Posts: 66
  • Thank you received: 32

Replied by H__ on topic Driver development tutorials

The
sudo make install
part ofhas always annoyed me and I do not use it anymore. I proposed an option to indiserver long ago (which got merged in) to accept paths to the drivers.
So in my build directory I run :
./indiserver ./some_driver
And that can be run directly from an IDE like QtCreator in debugging mode.
Drivers in the list without a path are the system-installed drivers, those with a ./ or some other relative path are for the drivers that I'm working on.
This is also convenient if you develop on another system.

-- Hans
3 months 2 weeks ago #66400

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

Time to create page: 0.701 seconds