×

INDI Library v1.7.9 Released (23 Jun 2019)

INDI Library v1.7.9 is mostly a maintenance release to fix a few bugs in several drivers.

How can I modify a driver?

  • Posts: 31
  • Thank you received: 1

How can I modify a driver? was created by Doug6952

I'm having an issue with my mount. It looks like the controls are reversed. When I click the move north button, it is moving south and south moves north. Same goes for east and west motion control.
I looked at the Ioptron ZEQ25 driver on github and cross referenced the commands with the command language for the zeq and it should be right but my mount must have some wires crossed somewhere. I wanted to try to mod the driver by switching the motion control commands for N,S,E,W motion. Beside working a bit with arduino I no nothing about programming.

So, how would I go about modding the driver for my own personal use ?
1 week 14 hours ago #40944

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

  • Posts: 159
  • Karma: 2
  • Thank you received: 78

Replied by pch on topic How can I modify a driver?

Before to change the code you must be sure this is really required.

It is normal that N/S are reversed depending on the meridian side. Normally if you move the mount on the other side of the meridian you must find that N/S work normally.

Are you sure E/W is reversed ? Do it track in the right direction? Do the mount as a Northern/Southern hemisphere setting? Is your latitude configured right at every place?
1 week 6 hours ago #40947

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

  • Posts: 868
  • Karma: 6
  • Thank you received: 228

Replied by wvreeven on topic How can I modify a driver?

Great advise and questions from Patrick. On top of that, check the Telescope configuration and see if changing any of these Motion settings help solve the issue:




HTH, Wouter
ASI1600MM-Pro Cooled and filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro

ASI1600MM-Pro Cooled and filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
1 week 5 hours ago #40948
Attachments:

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

  • Posts: 31
  • Thank you received: 1

Replied by Doug6952 on topic How can I modify a driver?

On the opposite side of the meridian (west) North moves north and south moves south. On the east side it moves in the opposite direction.

Mount tracks fine. Hand controller is set to northern hemisphere. Mount has GPS and is set to right Long/Lat. Have GPS set up on the Stellarmate and location is set correctly in Ekos.

When performing polar alignment assistant the mount moves in the opposite direction than the assistant expects it to move and aborts.

When I hit the move west button the mount puts the telescope on the east side of the mount and vise versa with moving east.
6 days 13 hours ago #40957

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

  • Posts: 159
  • Karma: 2
  • Thank you received: 78

Replied by pch on topic How can I modify a driver?

OK, if you want to try to modify the driver all the documentation is here:
www.indilib.org/develop/developer-manual.html

Start by : www.indilib.org/develop/developer-manual...ent-environment.html
For such a simple change you can probably ignore the part about QtCreator but you can use it if you prefer.

To help to understand the driver :
www.indilib.org/develop/developer-manual...ver-development.html
If you want to add more messages to the log for debugging:
www.indilib.org/develop/developer-manual/160-debug-logging.html

As your driver is in libindi you only need to build this, no need to compile anything in 3rdparty to test the mount.

Patrick
6 days 4 hours ago #40961

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

  • Posts: 31
  • Thank you received: 1

Replied by Doug6952 on topic How can I modify a driver?

OK
I modified the driver .cpp file in /projects/indi/libindi/drivers/telescope. Is that the file I need to edit? After editing the E and W motion commands I saved the file. How do I compile it or do whatever I need to do so Ekos will load the modified driver?
5 days 11 hours ago #40976

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

  • Posts: 31
  • Thank you received: 1

Replied by Doug6952 on topic How can I modify a driver?

When I typed in "cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi/libindi" I got an error message.
5 days 10 hours ago #40977

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

  • Posts: 159
  • Karma: 2
  • Thank you received: 78

Replied by pch on topic How can I modify a driver?

You must replace ~/Projects/indi/libindi by the exact path where you install the indi source code. From your previous message it is projects in lowercase.

If you get other error message please copy the error text here.
5 days 6 hours ago #40980

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

  • Posts: 31
  • Thank you received: 1

Replied by Doug6952 on topic How can I modify a driver?

I appreciate your help.

I forgot to capitalize the p in projects in my previous post. Where does ubuntu install indi when you do sudo apt-get install indi-full? The ~/Projects folder is where the git hub source was loaded into.
5 days 2 hours ago #40985

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

  • Posts: 868
  • Karma: 6
  • Thank you received: 228

Replied by wvreeven on topic How can I modify a driver?

The CMAKE_INSTALL_PREFIX is set by your command to /usr so the libraries end up in /usr/lib. Note that they will only appear there after issuing

sudo make install
ASI1600MM-Pro Cooled and filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro

ASI1600MM-Pro Cooled and filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
5 days 1 hour ago #40986

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

  • Posts: 159
  • Karma: 2
  • Thank you received: 78

Replied by pch on topic How can I modify a driver?

The indi deb (indi-full and other) get installed in /usr

This is why you specify -DCMAKE_INSTALL_PREFIX=/usr in the cmake command. This way when you run "sudo make install" it install in /usr , overwriting the version installed by the deb. This is much better than having two install at different place.
Ekos will use your new compiled version without any other configuration.
5 days 1 hour ago #40987

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

  • Posts: 31
  • Thank you received: 1

Replied by Doug6952 on topic How can I modify a driver?

I copied the all the libindi files including the modified driver for my mount to the ~/Projects/build/libindi folder.

This is what I got when I enter the cmake command:

doug@doug-X551CA:~/Projects/build/libindi$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi/libindi
bash: /usr/bin/cmake: No such file or directory

Then I created a new folder in /usr/bin and named it cmake and did the cmake command again and got:
doug@doug-X551CA:~/Projects/build/libindi$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi/libindi
bash: /usr/bin/cmake: Is a directory

Then did the install command:
doug@doug-X551CA:~/Projects/build/libindi$ sudo make install
make: *** No rule to make target 'install'. Stop.

What am I doing wrong?
4 days 12 hours ago #40989

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

Time to create page: 0.787 seconds