diff options
author | Your Name <you@example.com> | 2023-01-28 19:16:23 +0000 |
---|---|---|
committer | Your Name <you@example.com> | 2023-01-28 19:16:48 +0000 |
commit | 6653683aad155316121f22c9bab46aee53a5d34d (patch) | |
tree | 287cd0dc25cfd4e9e1a28ab3c61613cc38daeeae | |
parent | 62ab8c22bec268b2e0687ace63ce7148825fb428 (diff) | |
download | indi_mount_driver-6653683aad155316121f22c9bab46aee53a5d34d.tar.gz indi_mount_driver-6653683aad155316121f22c9bab46aee53a5d34d.tar.bz2 indi_mount_driver-6653683aad155316121f22c9bab46aee53a5d34d.zip |
perhaps fix tracking rates on lxd-650
-rw-r--r-- | indi-lxd650/lxd650.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indi-lxd650/lxd650.cpp b/indi-lxd650/lxd650.cpp index 9dfe8a0..80b5d0e 100644 --- a/indi-lxd650/lxd650.cpp +++ b/indi-lxd650/lxd650.cpp @@ -664,7 +664,7 @@ bool LXD650::LXDSetTrackRate(double rate) { rate *= 60. / TRACKRATE_SOLAR; - selectTrackingMode(PortFD, LX200_TRACK_SIDEREAL); //not sideral but "Quartz" + selectTrackingMode(PortFD, LX200_TRACK_MANUAL); if (setTrackFreq(PortFD, rate)) return false; @@ -676,6 +676,12 @@ bool LXD650::LXDSetTrackMode(uint8_t mode) { double rate = TRACKRATE_SIDEREAL; + if (mode == LXD_TRACK_SIDEREAL) { + if (selectTrackingMode(PortFD, LX200_TRACK_SIDEREAL)) + return false; + return true; + } + if (mode == LXD_TRACK_SOLAR) rate = TRACKRATE_SOLAR; else if (mode == LXD_TRACK_LUNAR) |