×
INDI Library v1.8.6 Released (21 Aug 2020)

August 2020 release of INDI Library v1.8.6 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Celestron CGX - Not tracking after slew

1 month 2 weeks ago
rickbassham
Expert Boarder
Expert Boarder
Posts: 80
More
Topic Author
Celestron CGX - Not tracking after slew #59255
I recently (a couple months ago) upgraded my hand controller firmware on my Celestron CGX, and since then my mount does not start tracking immediately following a slew. I've looked in the hand controller for a setting to change this, but can't find anything. Looking at the celestrongps.cpp file, the driver seems to assume that the mount will start tracking after slewing.

Has anyone else seen this behavior?

Also, I created a small patch that I believe will fix it, and I don't think it would have any side-effects other than possibly sending a command to the mount that isn't always needed.
diff --git a/drivers/telescope/celestrongps.cpp b/drivers/telescope/celestrongps.cpp
index 1f616e11..3be85ea9 100644
--- a/drivers/telescope/celestrongps.cpp
+++ b/drivers/telescope/celestrongps.cpp
@@ -847,7 +847,8 @@ bool CelestronGPS::ReadScopeStatus()
             if (driver.is_slewing(&slewing) && !slewing)
             {
                 LOG_INFO("Slew complete, tracking...");
-                TrackState = SCOPE_TRACKING;
+                SetTrackEnabled(true);
+
                 // update ra offset
                 double raoffset = targetRA - currentRA + SlewOffsetRa;
                 if (raoffset > 0.0 || raoffset < 10.0 / 3600.0)

Thoughts?

Gayle H Riggsbee Observatory
Charlotte Amateur Astronomers Club

CGX
AT72EDII w/Homemade Moonlite Compatible Arduino Focuser
AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI1600MC-Pro
ZWO ASI1600MM-Pro
ZWO ASI174MM-Mini
ZWO OAG
ZWO EFW
AT2FF

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

1 month 2 weeks ago
ChrisRowland
Platinum Boarder
Platinum Boarder
Posts: 537
Karma: 9
More
Celestron CGX - Not tracking after slew #59256
The mount should remember the tracking state through a slew so if it was tracking before the slew it should be afterwards, and vice versa.

The mount should also start tracking after the initial alignment.

And Ekos will send a start tracking command after the first slew.

What would concern me about automatically enabling tracking after a slew is that it's changing the expected behaviour, does the INDI specification specify that a mount must always be tracking after a slew?

Finally, how does this affect parking? This requires that tracking is off after the mount has moved to the park position.

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

1 month 2 weeks ago
rickbassham
Expert Boarder
Expert Boarder
Posts: 80
More
Topic Author
Celestron CGX - Not tracking after slew #59257
To answer your statements/questions:

1 & 2: I've had to manually toggle the tracking off then back on to get the mount to track after a slew. Otherwise the indi driver's state shows that it is tracking, but the mount actually isn't.
3: The code in Ekos seems to always check to see if the mount is tracking before sending a command to start tracking. It is always wrapped in an if statement like this one:
                if (currentTelescope && currentTelescope->canControlTrack() && currentTelescope->isTracking() == false)
Since the driver thinks the mount is tracking, it doesn't send the command.
4: Not sure about what the indi specification says, but the driver code itself as currently written DOES assume the mount will start tracking, and sets its internal state to SCOPE_TRACKING.
        case SCOPE_SLEWING:
            // are we done?
            bool slewing;
            if (driver.is_slewing(&slewing) && !slewing)
            {
                LOG_INFO("Slew complete, tracking...");
                TrackState = SCOPE_TRACKING;
5: This patch is only run when the scope is finishing a slew command, not a park command. Here's some more context around the patch:
    switch (TrackState)
    {
        case SCOPE_SLEWING:
            // are we done?
            bool slewing;
            if (driver.is_slewing(&slewing) && !slewing)
            {
                LOG_INFO("Slew complete, tracking...");
                SetTrackEnabled(true);

                // update ra offset
                double raoffset = targetRA - currentRA + SlewOffsetRa;
                if (raoffset > 0.0 || raoffset < 10.0 / 3600.0)
                {
                    // average last two values
                    SlewOffsetRa = SlewOffsetRa > 0 ? (SlewOffsetRa + raoffset) / 2 : raoffset;

                    LOGF_DEBUG("raoffset %4.1f, SlewOffsetRa %4.1f arcsec", raoffset * 3600 * 15, SlewOffsetRa * 3600 * 15);
                }
            }
            break;

        case SCOPE_PARKING:
            // are we done?
            if (driver.is_slewing(&slewing) && !slewing)
            {
                if (driver.set_track_mode(CTM_OFF))
                    LOG_DEBUG("Mount tracking is off.");

                SetParked(true);

Gayle H Riggsbee Observatory
Charlotte Amateur Astronomers Club

CGX
AT72EDII w/Homemade Moonlite Compatible Arduino Focuser
AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI1600MC-Pro
ZWO ASI1600MM-Pro
ZWO ASI174MM-Mini
ZWO OAG
ZWO EFW
AT2FF

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

1 month 2 weeks ago
rickbassham
Expert Boarder
Expert Boarder
Posts: 80
More
Topic Author
Celestron CGX - Not tracking after slew #59259
Related to #1, this may only be happening at the start of my night, but I've developed the habit of always toggling tracking off then on after a slew to be sure. So it might be that I'm unparking the mount (which doesn't enable tracking unless you've saved your mount config while it was tracking), doing a slew, then seeing the issue.

As the code stands now, because it is assuming it will always be tracking after a slew, but there are conditions where it may not actually be tracking, the safest thing to do is to explicitly start tracking.

Gayle H Riggsbee Observatory
Charlotte Amateur Astronomers Club

CGX
AT72EDII w/Homemade Moonlite Compatible Arduino Focuser
AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI1600MC-Pro
ZWO ASI1600MM-Pro
ZWO ASI174MM-Mini
ZWO OAG
ZWO EFW
AT2FF

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

1 month 2 weeks ago
ChrisRowland
Platinum Boarder
Platinum Boarder
Posts: 537
Karma: 9
More
Celestron CGX - Not tracking after slew #59261
I've just checked with my AVX. Turn on, set mount to indexes, do quick align.
The mount is tracking. I can see this because the tracking mode is reported on the HC as EQ-North, rate Sidereal. Also checking the Ra this is not changing.

Start Ekos, start INDI connected to the Celestron driver.
Indi reports that the mount is tracking. Ekos reports that the mount is tracking.

I have seen Ekos not get the stacking state correctly and stopping then starting tracking seems to be needed but that seems to be an Ekos problem, not a mount problem.

I really don't recommend unilaterally sending a start tracking command. Some Celestron mounts will stop tracking for 0.6 seconds when a start tracking command is sent. At least read the tracking state first.

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

1 month 2 weeks ago
dmsummers
Gold Boarder
Gold Boarder
Posts: 249
Karma: 2
More
Celestron CGX - Not tracking after slew #59262
I own a CGX-L, and I don't experience the issue described by rickbassham. I pretty much always execute the same procedure and results as Chris describes. My mount is always tracking after a slew to a target, and not tracking after a park. I have never had to toggle the tracking state in the HC after a slew to new target. I would wonder if something is wrong with the mount and/or installed packages if this were the case........

RASA11, Celestron CGX-L, ASI183mc Pro, 60mm guider + ASI290mm mini, ASI EAF focuser, PPB, Rpi4-4Gb+SSD, Powered USB3 hub, hardwire Ethernet.

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

1 month 2 weeks ago
knro
Administrator
Administrator
Posts: 8444
Karma: 51
Celestron CGX - Not tracking after slew #59269
As far as INDI specifications go, the ON_SET_COORD specify 3 switches:
1. Slew
2. Track
3. Sync

This is the action taken whenever EQUATORIAL_EOD_COORDS is updated. The difference between SLEW and TRACK is that Slew just moves from Point A to Point B and stops there. Whereas Track performs the slew and then engages tracking after it arrives at destination. For most mounts, tracking is re-engaged automatically so there are no differences between SLEW and TRACK. For mounts that have tracking control (on/off), SLEW can be implemented such as that it stops tracking after it is done but this is really not implemented in most drivers.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

1 month 2 weeks ago
rickbassham
Expert Boarder
Expert Boarder
Posts: 80
More
Topic Author
Celestron CGX - Not tracking after slew #59272
For the AVX and CGX-L, if the mount is not tracking, then you do a slew, does it start tracking automatically?

Gayle H Riggsbee Observatory
Charlotte Amateur Astronomers Club

CGX
AT72EDII w/Homemade Moonlite Compatible Arduino Focuser
AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI1600MC-Pro
ZWO ASI1600MM-Pro
ZWO ASI174MM-Mini
ZWO OAG
ZWO EFW
AT2FF

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

1 month 2 weeks ago
rickbassham
Expert Boarder
Expert Boarder
Posts: 80
More
Topic Author
Celestron CGX - Not tracking after slew #59275
The code could also be modified to do the check as suggested:
            if (driver.is_slewing(&slewing) && !slewing)
            {
                LOG_INFO("Slew complete, tracking...");
                TrackState = SCOPE_TRACKING;

                // Track Mode (t) is only supported for 2.3+
                if (checkMinVersion(2.3, "track mode"))
                {
                    CELESTRON_TRACK_MODE ctm = CTM_OFF;
                    if (driver.get_track_mode(&ctm))
                    {
                        if (ctm == CTM_OFF)
                        {
                            SetTrackEnabled(true);
                        }
                    }
                }

Gayle H Riggsbee Observatory
Charlotte Amateur Astronomers Club

CGX
AT72EDII w/Homemade Moonlite Compatible Arduino Focuser
AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI1600MC-Pro
ZWO ASI1600MM-Pro
ZWO ASI174MM-Mini
ZWO OAG
ZWO EFW
AT2FF

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

1 month 2 weeks ago
dmsummers
Gold Boarder
Gold Boarder
Posts: 249
Karma: 2
More
Celestron CGX - Not tracking after slew #59283
For the CGX-L, when I unpark, the mount is tracking automatically. After a slew, it is tracking too. I'm not sure what the state would be if I intentionally (via HC or kstars mount control) stopped tracking and then slewed. Since I only stop tracking if there's a problem or if I intend to be away/not imaging (and then restart tracking), I am always automatically tracking when not parked or slewing.

RASA11, Celestron CGX-L, ASI183mc Pro, 60mm guider + ASI290mm mini, ASI EAF focuser, PPB, Rpi4-4Gb+SSD, Powered USB3 hub, hardwire Ethernet.

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

1 month 2 weeks ago
gilesco
Expert Boarder
Expert Boarder
Posts: 156
Karma: 1
More
Celestron CGX - Not tracking after slew #59299
With my experience, I will confirm on next outing, my CGX (latest firmware etc...) tracks once aligned, and continues to track when slewing.

I can only assume, that either mount thinks it is not aligned, or not set to sidereal tracking.

__
I blog my progress: www.coochey.net

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

1 month 2 weeks ago
rickbassham
Expert Boarder
Expert Boarder
Posts: 80
More
Topic Author
Celestron CGX - Not tracking after slew #59301
I'll do some more testing tomorrow on it. Maybe I've got something wrong in the hand controller somewhere, since no one else is having the issue.

Gayle H Riggsbee Observatory
Charlotte Amateur Astronomers Club

CGX
AT72EDII w/Homemade Moonlite Compatible Arduino Focuser
AT8RC w/Moonlite CSL 2.5" w/Moonlite Stepper v3
ZWO ASI1600MC-Pro
ZWO ASI1600MM-Pro
ZWO ASI174MM-Mini
ZWO OAG
ZWO EFW
AT2FF

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

Time to create page: 0.789 seconds