hello!
after working on my telescope controller TSC for a while, I finally came back to solving an issue that bugged me for a while. I had/have the following problem.
- when connecting to the controller via LX200 Basic, all works fine
- when issuing a Slew command, the command is carried out but the position display in kstars is wrecked
after playing around in my code, I think i found the reason; "Slew" issues three commands, the desired position Sr and Sd, and a "Slew possible" command, :MS#.
Sr and Sd await a response, 1 if the coordinate is reasonable or 0 otherwise. I respond with "1" to each of these commands. Now here is the strange thing. INDI should
- send Sr ... and wait for the answer
- send Sd ... and wait for the answer
- send MS and wait for the answer
well, it does not; it sends Sd and MS as one command and apparently, does not expect two replies. as a result, the declination string and the RA string are read in the wrong order, and declination and RA are exchanged - which leads to a totally chaotic display, of course.
if i do not reply to :MS# as required in the LX200 protocol, everything is fine ...
yours
wolfi