×

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

Bi-monthly release with minor bug fixes and improvements

Advice re Astrophysics Experimental driver

  • Posts: 216
  • Thank you received: 41
Hi Wildi
No hurry here. I appreciate the help.
Stay safe.
Mike
4 years 4 weeks ago #50960

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

  • Posts: 216
  • Thank you received: 41
Hi Wildi
I did a bit more troubleshooting and it appears that the settings for Park 2 and Park 3 are the same. So when when manually set in the Park 3 position it still thinks that it is in the Park 2 position and this is shown on the sky chart. To my simplistic view it would be a matter of resetting the mount co-ordinates for Park 3 to the proper AP Park 3 which is weights down and Dec 90 deg. All the other Park positions work perfectly as described by the Astrophysics manual (1,2 and 4).
Hope that this is of some help :)

Mike
4 years 3 weeks ago #51141

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

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

short story: I need to dig deeper into the code and presumably discuss the findings with Jasem. May be the already found error triggers this behavior.

AstroPhysics only describes park positions. Their is no command, e.g. goto park3. The driver calculates the park position and issues a goto command (either in AltAz or RaDec coordinates).

I found that the mount has received the correct park 3 coordinates
[2020-03-20T15:30:11.380 - : "[SCOPE] CMD <#:Sz 180*00:00#> successful. "                                                                                                                                                                                                                                                            
[2020-03-20T15:30:11.413 - : "[SCOPE] CMD <#:Sa +27*26:06#> successful. "                                                                                                                                                                                                                                                            
but, as you reported, it "decides" to stop at
[2020-03-20T15:30:40.561 - : "[DEBUG] Parking... currentAz: 89.9442 dx: 0.399722 currentAlt: 0.107778 dy: 0.189444 "                                                                                                                                                                                                                 
[2020-03-20T15:30:40.569 - :  "[WARNING] Parking... slew status indicates mount stopped by dx/dy too                                                                                                                                                                                                                                 
pointing to exactly East at alt=0. I found at least an error and strange values
# ok, pointing to SCP at HA=+/6                                                                                                                                                                                                                                                                                                      
[2020-03-20T15:23:06.075 - :  "[INFO] calcParkPosition: parkPos=3 parkAlt=27.435000 parkAz=180.000000 "                                                                                                                                                                                                                              
# ok, axis1 is az, axis2 alt, looks good                                                                                                                                                                                                                                                                                             
[2020-03-20T15:23:06.076 - : "[DEBUG] Setting Park Axis1 to 180.00 "                                                                                                                                                                                                                                                                 
[2020-03-20T15:23:06.076 - : "[DEBUG] Setting Park Axis2 to 27.43 "                                                                                                                                                                                                                                                                  
# I guess here is the culprit:                                                                                                                                                                                                                                                                                                       
   if (calcParkPosition(parkPos, &parkAz, &parkAlt))                                                                                                                                                                                                                                                                                 
   {                                                                                                                                                                                                                                                                                                                                 
       SetAxis1Park(parkAlt); // should be az                                                                                                                                                                                                                                                                                        
       SetAxis2Park(parkAz);  // should be alt                                                                                                                                                                                                                                                                                       
       LOGF_DEBUG("Set predefined park position %d to az=%f alt=%f", parkPos, parkAz, parkAlt);                                                                                                                                                                                                                                      
   }                                                                                                                                                                                                                                                                                                                                 
# This is a real error, not a log format error:                                                                                                                                                                                                                                                                                      
[2020-03-20T15:23:06.077 - : "[DEBUG] Set predefined park position 3 to az=27.435000 alt=180.000000 "                                                                                                                                                                                                                                
# do not know yet, what that means: sending coordinates to the controller?                                                                                                                                                                                                                                                           
[2020-03-20T15:23:06.083 - :  "[INFO] Device configuration applied. "                                                                                                                                                                                                                                                                
[2020-03-20T15:23:06.083 - : "[DEBUG] Configuration successfully loaded. "                                                                                                                                                                                                                                                           
# but the mount reports ra=0., dec= plus 90 (!), I assume that the controller                                                                                                                                                                                                                                                        
# could  not handle az, alt values                                                                                                                                                                                                                                                                                                   
[2020-03-20T15:23:06.084 - : "[SCOPE] CMD <:GR#> "                                                                                                                                                                                                                                                                                   
[2020-03-20T15:23:06.084 - : "[SCOPE] RES <00:00:00> "                                                                                                                                                                                                                                                                               
[2020-03-20T15:23:06.084 - : "[SCOPE] VAL [0] "                                                                                                                                                                                                                                                                                      
[2020-03-20T15:23:06.084 - : "[SCOPE] CMD <:GD#> "                                                                                                                                                                                                                                                                                   
[2020-03-20T15:23:06.085 - : "[SCOPE] RES <+90*00:00> "                                                                                                                                                                                                                                                                              
[2020-03-20T15:23:06.085 - : "[SCOPE] VAL [90] "                                                                                                                                                                                                                                                                                     
[2020-03-20T15:23:06.086 - : "[DEBUG] CMD: <:pS#> "                                                                                                                                                                                                                                                                                  
[2020-03-20T15:23:06.086 - : "[DEBUG] RES: <West> "                                                                                                                                                                                                                                                                                  
A little bit later:
# again why these values                                                                                                                                                                                                                                                                                                             
[2020-03-20T15:23:06.153 - : "[SCOPE] CMD <:GR#> "                                                                                                                                                                                                                                                                                   
[2020-03-20T15:23:06.154 - : "[SCOPE] RES <00:00:00> "                                                                                                                                                                                                                                                                               
[2020-03-20T15:23:06.154 - : "[SCOPE] VAL [0] "                                                                                                                                                                                                                                                                                      
[2020-03-20T15:23:06.154 - : "[SCOPE] CMD <:GD#> "                                                                                                                                                                                                                                                                                   
[2020-03-20T15:23:06.154 - : "[SCOPE] RES <+90*00:00> "                                                                                                                                                                                                                                                                              
[2020-03-20T15:23:06.155 - : "[SCOPE] VAL [90] "                                                                                                                                                                                                                                                                                     
[2020-03-20T15:23:06.155 - : "[DEBUG] IsMountInitialized: RA: 0.000000 - DEC: 90.000000 "                                                                                                                                                                                                                                            
[2020-03-20T15:23:06.155 - : "[DEBUG] IsMountInitialized: raZE: 1 - deZE: 0 - de90: 1 "                                                                                                                                                                                                                                              
# ok ,not yet initialized                                                                                                                                                                                                                                                                                                            
[2020-03-20T15:23:06.160 - :  "[WARNING] Mount is not yet initialized. "                                                                                                                                                                                                                                                             
[2020-03-20T15:23:06.160 - : "[DEBUG] EXPERIMENTAL: LX200AstroPhysicsExperimental::IsMountParked() "                                                                                                                                                                                                                                 
[2020-03-20T15:23:06.161 - : "[DEBUG] EXPERIMENTAL: check status... "                                                                                                                                                                                                                                                                
[2020-03-20T15:23:06.161 - : "[DEBUG] check_lx200ap_status: received bytes 6, [P00000210P000] "                                                                                                                                                                                                                                      
[2020-03-20T15:23:06.161 - : "[DEBUG] parkStatus: P "                                                                                                                                                                                                                                                                                
[2020-03-20T15:23:06.161 - : "[DEBUG] Mount is not yet initialized. Initializing it... "                                                                                                                                                                                                                                             
[2020-03-20T15:23:06.162 - : "[DEBUG] APUnParkMount: Sending unpark command. "                                                                                                                                                                                                                                                       
[2020-03-20T15:23:06.162 - : "[SCOPE] CMD <#:PO> "                                                                                                                                                                                                                                                                                   
[2020-03-20T15:23:06.162 - : "[SCOPE] <abortSlew> "                                                                                                                                                                                                                                                                                  
[2020-03-20T15:23:06.162 - : "[DEBUG] Mount is initialized. "                                                                                                                                                                                                                                                                        
[2020-03-20T15:23:06.163 - : "[DEBUG] Unpark() -> unpark position = 0 "                                                                                                                                                                                                                                                              
[2020-03-20T15:23:06.168 - :  "[INFO] Unparking from last parked position... "                                                                                                                                                                                                                                                       
[2020-03-20T15:23:06.172 - :  "[INFO] Mount is unparked. "                                                                                                                                                                                                                                                                           


AstroPhysics says:
I understand this as, that the controller stores Ra and Dec values and stops. If it receives (local) time then it knows everything to point the mount correctly.

After you parked (at HA=+/-6h, dec = 0), you said, that after another slew the mount pointed to the correct sky location.
Unfortunately this case is not covered in your log, but let's assume AstroPhysics know how to properly store "proper calibration".
The Park-off descriptions explains, why the slew points to about the correct sky location.


I attached your log file with my annotations. That's for later use.

Kind regards, wildi
The following user(s) said Thank You: Spartacus
Last edit: 4 years 3 weeks ago by Markus Wildi. Reason: shortened log lines
4 years 3 weeks ago #51318
Attachments:

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

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

do you know how to compile INDI core?

Kind regards, wildi
4 years 3 weeks ago #51323

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

  • Posts: 216
  • 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
4 years 3 weeks 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
4 years 3 weeks ago #51349

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

  • Posts: 216
  • 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
4 years 3 weeks ago #51350

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

  • Posts: 216
  • 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
4 years 2 weeks 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: 4 years 2 weeks ago by Markus Wildi.
4 years 2 weeks 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.
4 years 2 weeks 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
4 years 2 weeks ago #51594

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

  • Posts: 216
  • 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
4 years 1 week ago #51810

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

Time to create page: 0.711 seconds