-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indi_eqmod_telescope: Mount time reverts on each new connection. #334
Comments
I just tested this and cannot reproduce this behavior with simulators. EDIT: Also just with EQ8 and cannot reproduce this. Julian date keep incrementing normally after indi_getprop |
The Julian date never stops incrementing, but it jumps back to the previously set time. This happens for every single indi_getprop command. It happens when PHD2 connects. It happens when I open the INDI control panel. Every time a new connection to INDI occurs, the time gets reset. |
Yes, I don't see it jumping back as well. I've used many indi_getprop and they don't affect it at all. Something else must be happening at your end. |
Hmm... I have never seen it NOT do this since I started using INDI. I have always had to use the GPSD workaround... and it's not ideal. I am not using Ekos/Kstars. Perhaps that code is doing something to prevent this behavior? |
Try to isolate this. Run EQMod driver alone and check. |
That test was worthwhile. It does NOT occur when only the EQMod Mount driver is in use. It DOES occur when the GPSD driver is in use. So if the GPSD driver is loaded and has synced the time, then you should be able to reproduce this. The GPSD and EQMount driver simulators are showing this. So... steps to be clear.
|
I made a very short video that shows this jump. simplescreenrecorder-2021-02-27_11.33.20.mp4 |
Thanks! I'm excited for this change. This behavior has confused me for a long time. I have tried building this though, and it doesn't look like it worked. On Astroberry I needed to git and build indi core and 3rd party drivers. I can see your code change in the source that I built, but the time is still jumping backwards when I test it. |
Are you sure the updated INDI GPSD driver is installed to the system? |
I can try rebuilding it all with deep git clones instead of shallow clones (based on the build instructions). Maybe there's something in that that will make a difference. |
I rebuilt everything from deep git clones. It's still jumping backwards in time. |
I can't replicate that now, just tested again. It stays on time. Check if the Location and Time properties in GPSD become IDLE once indi_getprop is called. THis is the change that happened in this fix. Btw, INDI GPSD driver is the one that got updated, not INDI EQMOd. |
Ah... They switch to idle if you issue an indi_getprop command without options. Then subsequent calls do not make the time jump. However, try testing by querying a specific item after refreshing GPSD.
instead of just
So it IS better in some situations, but not all. We were testing with slightly different indi_getprop commands. |
New connections to INDI cause the mount's time to be synced using the previous EQMod Mount.TIME_UTC values. The mount time is always set to the static values (previously used) on new INDI connections.
Steps to reproduce
Expected behavior.
Unless the TIME_UTC values are explicitly being updated, the mount's time should not be affected by new INDI connections, queries, or otherwise.
OS: Raspbian (Astroberry Server)
EQMod Mount Driver Version: 1.0
This bug is hidden by clients or drivers that regularly update the mount's time. I am aware of the GPSD feature to sync the time every second. It is not desirable though as that causes location jitter and the mount driver config file is re-written on every location change. So every second I end up with a new /home/astroberry/.indi/EQMod Mount_config.xml written to my SD card. 🤦
The text was updated successfully, but these errors were encountered: