×

INDI Library v1.9.3 Released (11 Nov 2021)

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

Joystick

  • Posts: 27
  • Thank you received: 0

Replied by Paul Mogg on topic Joystick

Thank you. that would be much appreciated.

Out of interest, can a build be made just by learning to use Github? Or do you have to load Xcode and a bunch of other Mac programming environment stuff on your mac to do this? In another lifetime I programmed under MSDOS in C and Assembly language, but have no mac programming experience.
9 months 1 week ago #67649

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

  • Posts: 192
  • Thank you received: 111

Replied by Rick Bassham on topic Joystick

You do not need to use xcode (but you do need to install it). If you have some programming experience (or are comfortable on the command line), you might be able to get it going pretty easily.

First, you'll need to install homebrew:

brew.sh/

Then install the dependencies needed to build all the things (I think this is comprehensive, but may not be):
brew install sdl2 cfitsio libnova gsl zlib libusb jpeg libtiff fftw cmake

Then you'll need to build libindi to provide the libraries we need to link against:
mkdir -p ~/indi_projects
cd ~/indi_projects
git clone https://github.com/indilib/indi.git
cd indi
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=RelWithDebInfo ../
make
sudo make install

Now that libindi is installed, we can build indi_gamepad and install it.
cd ~/indi_projects
git clone https://github.com/rickbassham/indi_gamepad.git
cd indi_gamepad
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=RelWithDebInfo ../
make
sudo make install

Then you should be able to restart KStars and see the gamepad (hopefully).
Gayle H Riggsbee Observatory - Charlotte Amateur Astronomers Club
CEM120 - TMB 100/800 - AT72EDII w/Homemade Moonlite Compatible Arduino Focuser - AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI2600MC-Pro - ZWO ASI2600MM-Pro - ZWO ASI174MM-Mini - ZWO OAG - ZWO EFW
AT2FF - CCDT67 - RIRED-M63
9 months 1 week ago #67650

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

  • Posts: 27
  • Thank you received: 0

Replied by Paul Mogg on topic Joystick

Hi Rick,
Thank you for the details of how to do that, unfortunately I just don't have the space free to install Xcode, I tried once before. Please let us know if you do come up with a method for non-programmers to be able to use the Joystick, as it would be make visual observing so much easier. Regards.
9 months 1 week ago #67681

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

  • Posts: 2548
  • Thank you received: 676

Replied by Rob Lancaster on topic Joystick

Hi there, Jasem gave me a heads up about this thread and this very interesting driver. I thought it might be nice to try to include this in the latest KStars and test it out. So I built it and put it in my latest build for kstars. Then I found an old Logitech Rumblepad 2 in the drawer. So I decided to try it out. I can't get it to connect to the gamepad so far. I keep getting these messages when I try to connect: "GamePad is disconnected." even though I am fairly sure it is connected. When I run it from the command line I get this on the command line: "2021-02-26T03:39:16: Driver ./indi_gamepad: joysticks count: 1" but I still get this when I try to connect from KStars and start the driver: "GamePad is disconnected."

Is there something I need to do to enable the controller to get it to start the driver? I tried this link in Google Chrome and it worked perfectly: gamepad-tester.com/

Any ideas? It would be nice to include if I/you can make it work.

Thanks,

Rob
The following user(s) said Thank You: Jasem Mutlaq
9 months 1 week ago #67805

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

  • Posts: 192
  • Thank you received: 111

Replied by Rick Bassham on topic Joystick

Hey Rob. I've only tested it with a Logitech F310 gamepad. Do you see "found gamecontroller at index" in the log after "joysticks count"?
Gayle H Riggsbee Observatory - Charlotte Amateur Astronomers Club
CEM120 - TMB 100/800 - AT72EDII w/Homemade Moonlite Compatible Arduino Focuser - AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI2600MC-Pro - ZWO ASI2600MM-Pro - ZWO ASI174MM-Mini - ZWO OAG - ZWO EFW
AT2FF - CCDT67 - RIRED-M63
9 months 6 days ago #67818

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

Time to create page: 0.491 seconds