-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Pololu Tic Focuser into INDI drivers #883
base: master
Are you sure you want to change the base?
Conversation
LibUSB should work as well as Pololu Tic library - it is based on Pololu Arduino Library. In that case there is no dependency on Pololu Tic Library. |
OK, have to test this. Then, what do you suggest?
By the way @sebo-b , many thanks for that great work! I'm using Tic-Focuser-Ng since a year and it was very easy to build and cheap! |
I concur. Having this based on libusb would simplify dependencies greatly. |
So, just checked the build without pololu tic library and it's ok. |
@bzizou Please check the build errors above |
Yes, I saw that. Warnings about deprecations turned into errors. That should be easy to fix. |
Actually, I'm not a CPP expert. Can someone help me to fix this:
from this code line:
|
ISwitch FocusParkingModeS[2]; | ||
ISwitchVectorProperty FocusParkingModeSP; | ||
|
||
ISwitch EnergizeFocuserS[2]; | ||
ISwitchVectorProperty EnergizeFocuserSP; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use INDI::PropertySwitch
IText InfoS[InfoTabSize] = {}; | ||
ITextVectorProperty InfoSP; | ||
|
||
IText* InfoErrorS; | ||
ITextVectorProperty InfoErrorSP; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use INDI::PropertyText
You need to use new-style INDI property as I commented above. It's fairly easy to use. |
@bzizou Do you need any help? INDI 2.0.6 is set to release in a week. Hopefully we can include this driver by then. |
To be honest, yes... The code has not been written by me and I'm not a C++ developer (I've been a little, far away in the past ;-) ), so I don't understand the other errors I have when I do the suggested changes into the header files. For example: Here's my patch:
And I get such errors:
|
Maybe @sebo-b , the original author, can help? |
Hi - I will try to help, but I need to prepare the whole setup as I was not working on that code for a few years. Give me a week or so :) |
Great! By "the whole setup", do you mean the hardware? As soon as the code compiles without errors, I Can do the functional tests on the whole setup if you want, just Ask 😉 |
By the whole setup, I meant the build environment. I was hoping that you can test it :) |
@bzizou I have updated the project to avoid the use of the deprecated functions. Please compile and test it in the setup. It will be best if you compile both Pololu and LibUSB interfaces and test both. (the new code is in my original repo). @knro I started moving the old property interfaces to the new ones, actually, I have almost finished it, but then I realized that it doesn't make too much sense in the current state of migration. Most of the drivers are still not updated, Connection::Interface and INDI::Focuser (base classes I use) are not migrated, so the old API will be mixed with the new one in multiple places. I will migrate when it becomes required as I assume it is not required now. |
It is required now for all new drivers. It will take a while to migrate all the other base classes and 3rd party drivers. |
OK, I'll test this asap (I'm currently under heavy load at work, and I hope that I'll have some time during the evenings this week) |
Yes sure. |
@sebo-b Can you please rebase? |
Integration of the driver for the DIY Pololu Tic Focuser from @sebo-b https://github.com/sebo-b/TicFocuser-ng
I tested the full kstars->indi->ticfocuser chain with NiXOS and this branch: https://github.com/bzizou/nixpkgs/tree/ticfocuser
As I only tested the "pololu-tic" connection, this driver only builts when the pololu-tic library is found on the system (https://github.com/pololu/pololu-tic-software) which is the case of the master branch of nixpkgs with the dependency "pololu-tic" (as seen here https://github.com/bzizou/nixpkgs/blob/ticfocuser/pkgs/development/libraries/science/astronomy/indilib/indi-3rdparty.nix)
Once the pololu-tic focuser merged into Indi, I'll do a PR to NiXOS and this system will then be ready to use it with no effort.
I really hope that this great project could be integrated into Indi, as I know that I'm not the only one using this DIY focuser that is very easy to build.