Andreas Rörig replied to the topic 'Slew complete problem' in the forum. 6 months ago

Hi John,

the mount controller is home built, based on a Raspberry Pi and a Arduino Due. It can be used with any equatorial mount that uses stepper motors. The problem seems to be within my INDI driver. I simply don't know why the Ekos scheduler immediately after sending the goto command thinks that the slew is complete.

I have identified where in the scheduler class the check happens where ekos thinks the slew is complete.
See below:

switch (currentJob->getStage())
    {
        case SchedulerJob::STAGE_SLEWING:
        {
            qCDebug(KSTARS_EKOS_SCHEDULER) << "Slewing stage...";

            if (status == ISD::Mount::MOUNT_TRACKING)
            {
                appendLogText(i18n("Job '%1' slew is complete.", currentJob->getName()));
                currentJob->setStage(SchedulerJob::STAGE_SLEW_COMPLETE);
                /* getNextAction is deferred to checkJobStage for dome support */
            }

I simply do not know why. As I set the TrackState to SCOPE_SLEWING immediately within the Goto method and the ReadScopeStatus method of my driver.

Best regards
Andreas

Read More...