×

INDI Library v1.9.3 Released (11 Nov 2021)

Bimonthly Stable INDI Library release introduces new drivers and fixes for existing ones. Some highlights:

I need help to connect the pyxis driver to my arduino code !!

  • Posts: 197
  • Thank you received: 3
Hello
One more question Jasem, how do I rename the driver that I modify so that I still have the original.
How do I install the modified driver and with which file do I have to do it?

Thanks again.
1 month 3 weeks ago #76646

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

You can rename the source files, and then look for nightcrawel in CMakeLists.txt and just copy the section for it and rename everything accordingly.

Regarding the driver, you need to make it only inherit INDI::Rotator, so remove INDI::FocuserInterface and all the Focuser related functions and variables. Alternatively, you can create a new driver based off one of the existing Rotator drivers.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
1 month 3 weeks ago #76659

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

  • Posts: 197
  • Thank you received: 3
hello Jasem
so I'll try to modify the driver and remove the parts that I think are useless.
But where can I see the commands in the driver, that it sends to the arduino, because I need to find the "home" command of the rotator, and the command to give an angle from the serial terminal of the IDE, to control the modicication of the code without going through kstars for my tests.

And thank you for the link to the other rotator drivers, but is there also one online for the arduino.

Thanks again.
1 month 3 weeks ago #76661

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

  • Posts: 197
  • Thank you received: 3
sorry again,
but I didn't quite understand that
**
You can rename the source files, and then look for nightcrawel in CMakeLists.txt and just copy the section for it and rename everything accordingly.
**
what should I do?
I just have to find the files, copy them, modify and rename them ?
or do I have to make a new driver by modifying the original files ?
1 month 3 weeks ago #76662

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

You have two files, nightcrawler.h and .cpp. Copy them to something like myrotator.h and .cpp

In INDI CMakelists.txt, search for the nightcrawler section where it builds the executable. Just copy it and change the the source files and the executable (e.g. indi_myrotator_rotator). Also, edit drivers.xml and add an entry there for your rotator.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
1 month 3 weeks ago #76663

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

  • Posts: 197
  • Thank you received: 3
ok
so I'm copying and changing the names here for me
/home/christophe/Projects/indi/drivers/rotator
and the new file I can call "mynightcrawler" in h. and cpp.

but i can't find the way to get there
INDI CMakelists.txt

I'm sorry again for my ignorance on the subject
Christophe
1 month 3 weeks ago #76665

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

/home/christophe/Projects/indi/CMakeLists.txt

I suggest you download QtCreator and use it as your IDE.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
1 month 3 weeks ago #76668

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

  • Posts: 197
  • Thank you received: 3
hello
so this is where I need to edit

################ NightCrawler Focusing Rotator ################

SET(nightcrawler_SRC
${CMAKE_CURRENT_SOURCE_DIR}/drivers/rotator/nightcrawler.cpp) !!! here only ? !!!

add_executable(indi_nightcrawler_focus ${nightcrawler_SRC})
target_link_libraries(indi_nightcrawler_focus indidriver)
install(TARGETS indi_nightcrawler_focus RUNTIME DESTINATION bin)

I have just taken QTCreator, it seems to me much more complex to use, I will look at it and try to understand its functioning
Last edit: 1 month 3 weeks ago by Porchet.
1 month 3 weeks ago #76669

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

  • Posts: 197
  • Thank you received: 3
hello Jasem
I have a question, would it not be easier to take the Pyxis driver which is only for a rotator and adapt the arduino code of the nightcrawler to the Pyxis driver or is it not possible?
Unless I find the Pyxis arduino code, but for the moment I haven't found anything.

See you soon
Christophe
1 month 2 weeks ago #76695

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

  • Posts: 197
  • Thank you received: 3
Hello
does anyone have an idea of the commands that Pyxis sends to the rotator and the denomination.
This would be to create arduino code that works with this driver, of course this is possible.

Thank you very much for your help.
1 month 2 weeks ago #76808

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

  • Posts: 197
  • Thank you received: 3
Hello
I'm coming back to you because I would like to have some help to get Pyxis to control an arduino vode that we made.
I would like to know the command syntaxes to give the angle displacement and the gohome.
And I would like to know what it takes for pyxis to recognize and connect to our arduino.
Thank you very much for your help.
1 month 1 week ago #77032

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

  • Posts: 197
  • Thank you received: 3
Hello again
I'm putting you the Pyxis driver doc, it's in chapter 4.
I'm not sure if this is a good idea, but I'm sure it will be.
I would like to know if there is a way to make my arduino code recognized by the Pyxis driver so that it can recognize the commands that the Pyxis driver sends.
I need the gohome and the angle command
of the rotator

Again, thanks to anyone who can help me
1 month 6 days ago #77144

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

Time to create page: 0.912 seconds