indigo-astronomy / indigo

INDIGO is a system of standards and frameworks for multiplatform and distributed astronomy software development designed to scale with your needs.
http://www.indigo-astronomy.org
Other
147 stars 66 forks source link

Slow slew cause ALERT state for AGENT_START_PROCESS on some mounts #564

Open DavidObfuscator opened 1 week ago

DavidObfuscator commented 1 week ago

During debugging some meridian flip issues on UMI17 mount discord, we face with a issue, when it doesnt work well. Mount is spec'ed to 3degree/s, running OnStep. Mount has a speed-up, slow-down proces during the slew. So when a meridian flip is triggered, it turns around 180degree on single axis, which is exactly 60seconds, adding the warm start overhead, it will exceed the 60second limit in the Mount Agent.

Issue is the 60k times waiting for 1000us: https://github.com/indigo-astronomy/indigo/blob/d80a92ecd267cd53994d5b1bfb38c9dff2482ca3/indigo_drivers/agent_mount/indigo_agent_mount.c#L739

It would be great if the timeout is increased or even better, monitor the coordinates and abort it, if the coordinates doesnt change for a while

rumengb commented 1 week ago

I will fix the issue. probably we should allow 1degree/s and make the timeout 180s?