×

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,

I appreciate the work that has gone into the driver. I will get back to you once I have put it on the test bed and I will get you all the info that you need.
The weather is so bad that I will test indoors.
The mount is definitely an AP 1100GTO. Unfortunately not mine! :)

Best regards,
Mike
4 years 1 month ago #50618

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

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

Finally managed to get the mount set up indoors as the weather is still awful. So I am in Australia in Brisbane. The setup is AP1100 with GTPO CP4 controller. I am using a standard RPi 3b with latest version of KStars and Ubuntu Mate 18.04. I am using astrometry.net offline as solver. I test using a load and slew protocol usually pointing to somewhere not too far from the pole like miaplacidus or acrux.
The mount is parked at the standard AP Park 3 (Dec is at 90.00). The driver is set to unpark from last parked position and to park to Park 3.
The good news is that when the scope is started it knows where it is and will slew to the correct position. However when set to park it goes to the correct position on Azimuth but still goes to 00.00 Dec which means that the scope is at 90degrees in dec to the proper AP Park 3.
When parked in this position and asked to slew again it knows where it is but always parks to 00.00 in Dec.
As I said before this is not a problem in practice. I set up in this Dec 00.00 position and everything works fine.
So I don't have any complaints, it is just that I suppose for completeness, when set to park at park three it should be the AP Park 3.
Let me know if you want me to do anything else or send in logs. I will leave the scope set up and see if we can sort it out if you have the time.
It is still a great driver. Thanks for the work that you have done!

Mike
4 years 1 month ago #50839

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

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

in the mean time I saw the AP 1100 mount :-) and took a look at the manual.

AP Park 3 coordinates: Hour Angle (HA) +/- 6 hours, Dec=90 deg
That means, the counter weights are at their lowest position.

Let me summarize what the mount does, you

  • bring the mount manually to Park 3 position (only for the first time, e.g. a cold start)
  • slew with INDI the mount and it goes to the correct position, the star is "on the" crosshair (more or less)
  • park the mount again with INDI and it reaches HA = +/- 6 hours but Dec = 0 degree
  • unpark it again and slew it with INDI and the final position is correct again
  • park it again with the same result as in step 3
Ok, can you tell me which INDI driver you are using and if possible can you send me the debug log files?

That is exactly my opinion.

Kind regards, wildi
4 years 1 month ago #50926

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

  • Posts: 216
  • Thank you received: 41
Hi Wildi

As you say previously this is what happened

bring the mount manually to Park 3 position (only for the first time, e.g. a cold start)
slew with INDI the mount and it goes to the correct position, the star is "on the" crosshair (more or less)
park the mount again with INDI and it reaches HA = +/- 6 hours but Dec = 0 degree
unpark it again and slew it with INDI and the final position is correct again
park it again with the same result as in step 3

Now however when the mount is set at AP Park 3 it shows the position on start up to be the HA = +/- 6 hours but Dec = 0 degree position
Despite switching off for a while I cannot get it to work as per the cold start described above. So bearing this in mind the following described the debug log attached

Mount is in the HA = +/- 6 hours but Dec = 0 degree position on start up.
Kstars is started and the astrophysics profile started.
Indi popup starts
I open up the astrophysics mount tab and connect (setting the "last parked" does not seem to make a difference so it is set to "Last parked" position
The mount position appears on the Star Chart to be correct for the HA = +/- 6 hours but Dec = 0 degree position
To confirm it knows where it is I do a load and slew of an image of miaplacidus and using astrometry.net this solves and slews to miaplacidus on the star chart.
I press park (set to AP Park 3 position) but the mount parks at the HA = +/- 6 hours but Dec = 0 degree position rather than the 90 deg dec position

The indi driver is indi_lx200ap_experimental
The mount driver is VCP4-P01-11

Let me know if there is anything you need me to try

File Attachment:

File Name: log_15-21-59.txt
File Size:540 KB


Cheers

Mike
4 years 4 weeks ago #50942
Attachments:

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

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

thanks for the log. We have spare_time++ over here, but I need some time to go through the details.

Kind regards, bye, wildi
The following user(s) said Thank You: Spartacus
4 years 4 weeks ago #50956

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

  • 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.

Time to create page: 1.072 seconds