×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Driver for GoTo and Guide through Arduino & ST4

  • Posts: 13
  • Thank you received: 0
Hi !

are you awake 24 hours a day ? Thank you very much to be so fast to reply.

Perhaps I don't know the difference in building within libindi or as a 3rd party driver.

The tgz of my project is here:
www.dropbox.com/s/lz31p0sg6awcvs4/indi_a...-master-2.0.tgz?dl=0

While waiting for your comments I will try to learn something more !!

NOTE:
To be on the safe side, I edited the CMakeList.txt, created a Modules folder and added the findINDI.cmake and findNOVA.cmake files (copied from the eqmode 3rd party drivers). The CMakeList.txt is now pretty much similar to the one in the EQmod driver folder.

########## Tutorial one ##############
cmake_minimum_required(VERSION 2.4.7)

LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules/")
include(GNUInstallDirs)

set(BIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/bin")
set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")

find_package(INDI REQUIRED)
find_package(Nova REQUIRED)
find_package(ZLIB REQUIRED)

set(ARDUST4_VERSION_MAJOR 2)
set(ARDUST4_VERSION_MINOR 0)

set(INDI_DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/indi")

include_directories( ${CMAKE_CURRENT_BINARY_DIR})
include_directories( ${CMAKE_CURRENT_SOURCE_DIR})
include_directories( ${INDI_INCLUDE_DIR})
include_directories( ${NOVA_INCLUDE_DIR})
include_directories( ${NOVA_INCLUDE_DIR}/..)


include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif(COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()


add_executable(indi_ardust4 ardust4.cpp ardust4driver.cpp)

target_link_libraries(indi_ardust4 indidriver)


Run again CMake but when I compile I got the same exact error.

Cheers
Francesco
Last edit: 7 years 4 months ago by Francesco Campanini. Reason: Additional notes and comment
7 years 4 months ago #12390

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

  • Posts: 13
  • Thank you received: 0
Hi knro,

found the solution and compiled !

The issue was in the MakeFile.txt, there was information of the include directive but not of the library :

I added this to the end of the MakeFile.txt and I got it compiled ...
target_link_libraries(indi_ardust4 nova)

That does not mean that it will work but ... you know ... it has to compile first !!

I asked the author of ardust4 if I can collaborate but he didn't come back to me so I started to modify is driver. When I will have it tested with basic goto functionality I will create my GitHub repository and I will inform you.

Thanks for your support. I really appreciate your hard work and commitment for such a big project !
Many thanks from Francesco (an Italian who live in Britain)
Francesco
7 years 4 months ago #12396

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

Ok please download "fixed" version from here: www.dropbox.com/s/oevagh6caacf0vy/indi_a...4-master.tar.gz?dl=0

Now it is made as a 3rd party library. 3rd part simply means it is compiled outside of INDI tree. I changed the device name to "Adruino GOTO" and note that I used the same name in the device XML file (that clients parse to learn of available drivers in the system). I also included the cmake_modules directory and made any necessary changes. Now it fails to compile, but it is due to missing Park()/unPark() functions you defined in the header but not implemented yet, so I'll leave that to you. Good luck!
7 years 4 months ago #12401

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

  • Posts: 13
  • Thank you received: 0
Thanks you !

YOU ARE A PRO !!
7 years 4 months ago #12405

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

  • Posts: 13
  • Thank you received: 0
Hello again !

The code is now compiling correctly and I have been able to start indiserver, start CCDciel and use the Panel (only the Tracking part of the code is working, the rest is still simulated).

If I tried to use KStars (as it is the only way I know to be able to test GoTo functionalities with Indi) ... I can see my driver listed but when I connect indiserver I get an error message like "driver was not found on the system".

I checked and the driver is (together with the other) in /usr/bin while the xml is in /usr/share/indi

With KStars I can use indi with indi_v4l2_ccd and indi_gphoto2_ccd ... which have files located in the same place of arduinogoto_telescope ...

Any idea ? I tried to strace indiserver but without success !

Cheers
Francesco
7 years 4 months ago #12450

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

I checked what I sent you, and in the XML file, the file is called "indi_arduino_telescope", while the executable is called "indi_arduinogoto_telescope", so please change the name in the XML file to that of the executable exactly and run sudo make install and try again.
7 years 4 months ago #12452

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

  • Posts: 13
  • Thank you received: 0
Hi,

yes that was the reason ! Thanks.

I am now trying to debug the code using QT creator 3.5 (I have being using Visual studio years ago and I found QT really a good development environment). I watched your videos here:
www.indilib.org/develop/developer-manual...ent-environment.html

After some try/error I got my driver built with debug symbols in it (the size is more than twice the normal build) ... but ... there is always a but !!

As my driver is a telescope driver and kstars require to have a CCD driver as well so I tried both indi_v4l2_ccd (with my laptop webcam....) or indi_gphoto_ccd and within QT, the application start like this:
indiserver -v indi_v4l2_ccd indi_arduinogoto_telescope

The issue is that, I just use:
indiserver -v indi_arduinogoto_telescope
I can debug with no error (breakpoint works), but I cannot test it with kstars.

If I use
indiserver -v indi_v4l2_ccd indi_arduinogoto_telescope
indiserver -v indi_gphoto_ccd indi_arduinogoto_telescope

I got a segmentation fault ! Any idea or recommendation ?

Cheers
Francesco
7 years 4 months ago #12503

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

The driver you want to debug should always be the first. i.e.
indiserver -v indi_arduinogoto_telescope indi_v4l2_ccd
The following user(s) said Thank You: Francesco Campanini
7 years 4 months ago #12507

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

  • Posts: 13
  • Thank you received: 0
Thanks Jasem, That was what I was missing !

Francesco
7 years 4 months ago #12530

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

  • Posts: 26
  • Thank you received: 1
Hi,
I'm also trying to morize my mount. Could you send again your project? Dropbox links are not working anymore.
6 years 2 months ago #22605

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

  • Posts: 13
  • Thank you received: 0
Hi,
sorry to be away for so long but many nice things happened (a daughter and a new job) and I didn't have time to work on the project. I will create a git repository and upload the latest set of files ASAP then post here the link.
Thanks
Francesco
5 years 10 months ago #26426

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

  • Posts: 13
  • Thank you received: 0
Here we are.
This the github URL:
github.com/f-campanini/ardust4
Feel free to get the code and to commit changes. I will try to regulary review and work with the community on this.
Francesco
5 years 10 months ago #26431

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

Time to create page: 1.017 seconds