×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Advice re Astrophysics Experimental driver

  • Posts: 59
  • Thank you received: 19
Hello Mike

do you know how to compile INDI core?

Kind regards, wildi
4 years 5 hours ago #51323

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

  • Posts: 215
  • Thank you received: 41
Hi Wildi,
In a word "no" but happy to learn. Any tips where I can upskill? I will start with GIThub?
Crazy busy at work but can look at this as a replacement for gym, socialising, pub life, going out for meals etc, etc, etc. :)

I appreciate the pointers in the error log.

Mike
3 years 11 months ago #51342

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

  • Posts: 59
  • Thank you received: 19
Hello Mike

yes, it'll start at github INDI Core Library .

Background: having, trough you, a direct access to a AP1100GTO shortens the test cycle. I want to see if the error I previously found is the reason, why the mount parks at HA=-6h, dec 0.

If
  • terminal is not a complete foreign word to you
  • you run INDI on any Linux device
go to the INDI repo website and read steps
  • Install Pre-requisites
  • Create Project Directory
  • Build indi-core, with the exception of last command: sudo make install
If you think it is doable, then let's start. You can perform all the above steps with the exception of the installation. Your existing INDI installation remains unchanged.


Kind regars, wildi
3 years 11 months ago #51349

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

  • Posts: 215
  • Thank you received: 41
Hi Wildi,

Happy to give it a go. Once I have got up to speed I will get back to you.

Cheers,
Mike
3 years 11 months ago #51350

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

  • Posts: 215
  • Thank you received: 41
OK all done.
Just checking that you don't want me to create a clone as per the INDI repo instructions.

I have an error code on a Cmake . Here is the last part of the terminal code

mike@mike-pi:~$ mkdir -p ~/Projects
mike@mike-pi:~$ cd ~/Projects
mike@mike-pi:~/Projects$ mkdir -p ~/Projects/build/indi-core
mike@mike-pi:~/Projects$ cd ~/Projects/build/indi-core
mike@mike-pi:~/Projects/build/indi-core$ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi
CMake Error: The source directory "/home/mike/Projects/indi" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
mike@mike-pi:~/Projects/build/indi-core$ make -j4
Is this OK to proceed
I have not entered the sudo make install

So if the above is OK. We are ready for the next step :)

Mike
3 years 11 months ago #51396

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

  • Posts: 59
  • Thank you received: 19
Hello Mike

my fault. Do the following steps in the terminal (line by line, dropping lines containing "#")
# you will be asked for your password                                                                                                                                                                                               
# the line is long                                                                                                                                                                                                                  
sudo apt-get install -y libnova-dev libcfitsio-dev libusb-1.0-0-dev zlib1g-dev libgsl-dev build-essential cmake git libjpeg-dev libcurl4-gnutls-dev libtiff-dev libfftw3-dev                                                        
#                                                                                                                                                                                                                                   
mkdir -p ~/Projects                                                                                                                                                                                                                 
#                                                                                                                                                                                                                                   
cd ~/Projects                                                                                                                                                                                                                       
#                                                                                                                                                                                                                                   
git clone https://github.com/indilib/indi.git                                                                                                                                                                                       
#                                                                                                                                                                                                                                   
mkdir -p build/indi-core                                                                                                                                                                                                            
#                                                                                                                                                                                                                                   
cd build/indi-core                                                                                                                                                                                                                  
#                                                                                                                                                                                                                                   
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/Projects/indi                                                                                                                                                          
#                                                                                                                                                                                                                                   
make -j 4                                                                                                                                                                                                                           

Background: INDI (mount) drivers are coded structurally almost in identical way. I convinced myself that I found at least one bug. E.g. in drivers/telescope/lx200ap.cpp it looks like
    LOGF_DEBUG("Setting current parking position to coordinates Az (%s) Alt (%s)...", AzStr,                                                                                                                                        
               AltStr);                                                                                                                                                                                                             
 
    SetAxis1Park(parkAZ);                                                                                                                                                                                                           
    SetAxis2Park(parkAlt);                                                                                                                                                                                                          
while in drivers/telescope/lx200ap_experimental.cpp it is the other way round:
       SetAxis1Park(parkAlt);                                                                                                                                                                                                       
       SetAxis2Park(parkAz);                                                                                                                                                                                                        
       LOGF_DEBUG("Set predefined park position %d to az=%f alt=%f", parkPos, parkAz, parkAlt);                                                                                                                                     

I attached the corrected file drivers/telescope/lx200ap_experimental.cpp as lx200ap_experimental.txt since the forum software does not accept files ending with .cpp.
Download it and I assume that the attachment is stored, as usual, under ~/Downloads, do the following:
cd ~/Projects/indi                                                                                                                                                                                                                  
cp ~/Downloads/lx200ap_experimental.txt drivers/telescope/lx200ap_experimental.cpp                                                                                                                                                  
cd  ~/Projectsbuild/indi-core                                                                                                                                                                                                       
make -j 4                                                                                                                                                                                                                           

Now we can proceed to the next level :-)

Kind regards, wildi

File Attachment:

File Name: lx200ap_ex...3-30.txt
File Size:53 KB
Last edit: 3 years 11 months ago by Markus Wildi.
3 years 11 months ago #51410
Attachments:

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

  • Posts: 59
  • Thank you received: 19
Hello Mike

unfortunately there are two identical attachments. If you right click on one of them save it as

/home/mike-pi/Projects/indi/drivers/telescope/lx200ap_experimental.cpp

It is a bit cumbersome I know.

Kind regards, wildi

P.S. if we need to exchange another file we will do that without this pain.
3 years 11 months ago #51411

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

  • Posts: 59
  • Thank you received: 19
Hello Mike

I posted a proposal in thread Astro-Physics GTOCP4 driver, lx200ap_experimental.cp to change the calls to Alt,Az gotos to HA/Ra, Dec.

Kind regards, bye, wildi
The following user(s) said Thank You: Spartacus
3 years 11 months ago #51594

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

  • Posts: 215
  • Thank you received: 41
Just for the benefit of anyone who had followed this thread.
Wildi and I have been working through the Park 3 issue and Wildi has made changes to the driver that define Park 3 so that in our set up (AP1100GTO GTOCP4 using RPi3b) it now parks consistently in the AP defined Park3 position (Weights down and scope pointing at South Celestial pole) in our experimental setup.
No changes have been made to the original driver currently available in downloads.

I want to thank Wildi for all the work that he has put in over the past few weeks.

Mike
3 years 11 months ago #51810

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

Time to create page: 0.746 seconds