×

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

Bi-monthly release with minor bug fixes and improvements

Solver and EQ-Mod looping indefinitely

  • Posts: 1029
  • Thank you received: 301
Sometimes I have the solver looping indefinitely, adjusting for a position it can never seem to be happy with:
2016-12-01T00:26:17: EQMod Mount: Setting Eqmod Goto RA=6.10056 DE=24.8812 (target RA=6.16736 DE=24.3435)
2016-12-01T00:26:17: EQMod Mount: Slewing mount: RA increment = -56, DE increment = 0
2016-12-01T00:26:17: EQMod Mount: Slewing to RA:  6:10:02 - DEC: 24:20:37
2016-12-01T00:26:17: EQMod Mount: Iterative Goto (1): RA diff = 0.72 arcsecs DE diff = 0.11 arcsecs
2016-12-01T00:26:18: EQMod Mount: Telescope slew is complete. Tracking TRACK_SIDEREAL...
2016-12-01T00:26:20: V4L2 CCD: Upload settings set to client and local.
2016-12-01T00:26:20: V4L2 CCD: Astrometry solver is enabled.
2016-12-01T00:26:20: V4L2 CCD: Using device manual exposure (max 36000000.000000, required 50000.000000).
2016-12-01T00:26:25: V4L2 CCD: Capture of one frame (0 stacked frames) took 5.032837 seconds.
2016-12-01T00:26:25: V4L2 CCD: Solving image...
2016-12-01T00:26:37: V4L2 CCD: Astrometry solver is disabled.
2016-12-01T00:26:37: V4L2 CCD: Upload settings set to client only.
2016-12-01T00:26:37: EQMod Mount: Starting Goto RA=6.16736 DE=24.3435 (current RA=6.10079 DE=24.8812)
2016-12-01T00:26:37: EQMod Mount: GOTO ALign Nearest: delta RA = -0.066798, delta DEC  = 0.537702
2016-12-01T00:26:37: EQMod Mount: Aligned Eqmod Goto RA=6.10056 DE=24.8812 (target RA=6.16736 DE=24.3435)
2016-12-01T00:26:37: EQMod Mount: Setting Eqmod Goto RA=6.10056 DE=24.8812 (target RA=6.16736 DE=24.3435)
2016-12-01T00:26:37: V4L2 CCD: Solver complete.
2016-12-01T00:26:37: EQMod Mount: Slewing mount: RA increment = 179, DE increment = 0
2016-12-01T00:26:37: EQMod Mount: Slewing to RA:  6:10:02 - DEC: 24:20:37
2016-12-01T00:26:38: EQMod Mount: Iterative Goto (1): RA diff = 0.22 arcsecs DE diff = 0.11 arcsecs
2016-12-01T00:26:38: EQMod Mount: Telescope slew is complete. Tracking TRACK_SIDEREAL...
2016-12-01T00:26:40: V4L2 CCD: Upload settings set to client and local.
2016-12-01T00:26:40: V4L2 CCD: Astrometry solver is enabled.
2016-12-01T00:26:40: V4L2 CCD: Using device manual exposure (max 36000000.000000, required 50000.000000).
2016-12-01T00:26:45: V4L2 CCD: Capture of one frame (0 stacked frames) took 5.032794 seconds.
2016-12-01T00:26:45: V4L2 CCD: Solving image...
2016-12-01T00:26:58: V4L2 CCD: Astrometry solver is disabled.
2016-12-01T00:26:58: V4L2 CCD: Upload settings set to client only.
2016-12-01T00:26:58: EQMod Mount: Starting Goto RA=6.16736 DE=24.3435 (current RA=6.10039 DE=24.8812)
2016-12-01T00:26:58: EQMod Mount: GOTO ALign Nearest: delta RA = -0.066798, delta DEC  = 0.537702
2016-12-01T00:26:58: EQMod Mount: Aligned Eqmod Goto RA=6.10056 DE=24.8812 (target RA=6.16736 DE=24.3435)
2016-12-01T00:26:58: EQMod Mount: Setting Eqmod Goto RA=6.10056 DE=24.8812 (target RA=6.16736 DE=24.3435)
2016-12-01T00:26:58: V4L2 CCD: Solver complete.
2016-12-01T00:26:58: EQMod Mount: Slewing mount: RA increment = -37, DE increment = 0
2016-12-01T00:26:58: EQMod Mount: Slewing to RA:  6:10:02 - DEC: 24:20:37
2016-12-01T00:26:59: EQMod Mount: Iterative Goto (1): RA diff = 0.47 arcsecs DE diff = 0.11 arcsecs
2016-12-01T00:26:59: EQMod Mount: Telescope slew is complete. Tracking TRACK_SIDEREAL...
2016-12-01T00:27:01: V4L2 CCD: Upload settings set to client and local.
2016-12-01T00:27:01: V4L2 CCD: Astrometry solver is enabled.
2016-12-01T00:27:01: V4L2 CCD: Using device manual exposure (max 36000000.000000, required 50000.000000).
2016-12-01T00:27:06: V4L2 CCD: Capture of one frame (0 stacked frames) took 5.032761 seconds.
2016-12-01T00:27:06: V4L2 CCD: Solving image...
2016-12-01T00:27:19: V4L2 CCD: Astrometry solver is disabled.
2016-12-01T00:27:19: V4L2 CCD: Solver complete.
2016-12-01T00:27:19: V4L2 CCD: Upload settings set to client only.
2016-12-01T00:27:19: EQMod Mount: Starting Goto RA=6.16736 DE=24.3435 (current RA=6.10073 DE=24.8812)
2016-12-01T00:27:19: EQMod Mount: GOTO ALign Nearest: delta RA = -0.066798, delta DEC  = 0.537702
2016-12-01T00:27:19: EQMod Mount: Aligned Eqmod Goto RA=6.10056 DE=24.8812 (target RA=6.16736 DE=24.3435)
2016-12-01T00:27:19: EQMod Mount: Setting Eqmod Goto RA=6.10056 DE=24.8812 (target RA=6.16736 DE=24.3435)
2016-12-01T00:27:19: EQMod Mount: Slewing mount: RA increment = 74, DE increment = 0
2016-12-01T00:27:19: EQMod Mount: Slewing to RA:  6:10:02 - DEC: 24:20:37
2016-12-01T00:27:20: EQMod Mount: Iterative Goto (1): RA diff = 0.82 arcsecs DE diff = 0.11 arcsecs
2016-12-01T00:27:20: EQMod Mount: Telescope slew is complete. Tracking TRACK_SIDEREAL...

I attach the screenshot of the Solver tab. From what I understand, the Telescope is just out of the 30 arcsec boundary, but cannot be aligned to the solution.
For this operation to succeed afterwards, I need to disconnect/reconnect to the remote indi server. Once this is done, alignment succeeds again.
This causes errors in the Scheduler Jobs, as all subsequent alignments will fail once this issue arises.
Any idea how I can work around this? Increasing the 30" boundary is an idea, but I'm not sure it would actually solve the looping issue.
-Eric
7 years 4 months ago #12831
Attachments:

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

From the screenshot, it doesn't appear that the mount is receiving SYNC commands from the align module. I don't understand why. Please try to debug this. Line #1305 of align.cpp
void Align::SlewToTarget()
{
    if (canSync && loadSlewState == IPS_IDLE)
    {
        Sync();
        return;
    }
 
    Slew();
}

The Sync() is not executed. Place a breakpoint at the if condition, and find out which condition was not satisfied.
Last edit: 7 years 4 months ago by Jasem Mutlaq.
7 years 4 months ago #12838

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

  • Posts: 20
  • Thank you received: 12
Hi,

I had the same problem after a update of kstars + indi last week. (I was occupied with work before for almost a year and did run with a quite old version of indi).
GDB reported that canSync is "false" if the looping occurs.
Next day I found out that you can get around the problem with a reconnect to the eqmod driver. As I did not start with debugging right away I used "Sync" in the Alignment Module instead of "slew to target" for one night. So sync worked while slew to target was not working.

Cheers

Markus
7 years 4 months ago #13086

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


Thanks for the testing. Can you check line #370 here:
if (syncR->isEnabled() && (canSync = currentTelescope->canSync()) == false)
    {
        syncR->setEnabled(false);
        slewR->setChecked(true);
        appendLogText(i18n("Telescope does not support syncing."));
    }

canSync is supposed to be set here. Can you check while it gets set to false? is this line ever executed? Thanks.
7 years 4 months ago #13093

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

  • Posts: 1029
  • Thank you received: 301
If syncR->isEnabled() returns false, canSync will not be set at all because of logical operator optimization. Might this be the problem?
-Eric
The following user(s) said Thank You: Jasem Mutlaq
7 years 4 months ago #13103

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

  • Posts: 20
  • Thank you received: 12
Hi,

I only had time for a short test with the simulators in the train today. Line #370 should be inside the if condition and I did never hit that breakpoint. A break point for the if condition itself did trigger but I could not get the value for syncR->isEnabled() (I did not have the time to write a little script for gdb to get a QT radio button value).

I hope I will find some time for a in depth test at the weekend or beginning of next week.
As I can not predict the wether till then I would like to try it with the CCD Simulator and I have some questions regarding the simulator.
If I understand it correcectly, the simulator creates the pictures with gsc (which I set up yesterday) and uses the mount coordinates for the gsc. How can I create a setup where I do have differences between the CCD Simulator picture and the mount?
Maybe I'm already a step too far with this setup as the if condition is already done before the solver is started, but I would like to check the alignment results for different results of the if condition.

Cheers Markus
7 years 4 months ago #13105

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

Ok please check if you still have this issue in the next KStars PPA update.
7 years 4 months ago #13106

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


No need as I believe the issue should be fixed in the next PPA update (within an hour from this post). Regarding generating differences between mount coords and what CCD uses, you can do that in the INDI Control Panel -> Telescope Simulator --> Motion Control. There you can change PE N/S and W/E properties to induce some change which you can see reflected in the Periodic Error coords. These are the coords that are used by gsc. They are usually the same as mount coordinates unless you manually play with the PE N/S/W/E controls.
The following user(s) said Thank You: Thomas Seckler
7 years 4 months ago #13107

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

Time to create page: 0.453 seconds