OK, here we go. When INDI sends a slew command, it sends the following commands:

2023-10-22 19:55:47,034:DEBUG:LX200Mount:Read command line: 'Sr14:16:44#'
2023-10-22 19:55:47,034:DEBUG:Lx200CommandResponder:Setting RA to 14:16:44
2023-10-22 19:55:47,034:DEBUG:LX200Mount:Read command line: 'Sd+19*03:56#'
2023-10-22 19:55:47,034:DEBUG:Lx200CommandResponder:Setting DEC to +19*03:56
2023-10-22 19:55:47,034:DEBUG:LX200Mount:Read command line: 'MS#'
2023-10-22 19:55:47,035:DEBUG:Lx200CommandResponder:Slewing to RaDec (14:16:44, +19*03:56).

So it first sends an Sr command with the RA and then an Sd command with the DEC. Finally it sends an MS command that initiates the slew. Before that, my code sends the following RA and DEC strings, to indicate that the telescope is at AZ 0.0 and ALT 0.0:

2023-10-22 19:55:45,945:DEBUG:Lx200CommandResponder:ra_str='07:43:51.18'
2023-10-22 19:55:45,953:DEBUG:Lx200CommandResponder:dec_str="49*16'37.50"

The telescope is correctly displayed on the northern horizon. As soon as the MS command is received, the telescope code starts slewing to the position of, in this case, Arcturus and sends these strings:

2023-10-22 19:55:47,982:DEBUG:Lx200CommandResponder:ra_str='07:56:56.31'
2023-10-22 19:55:48,986:DEBUG:Lx200CommandResponder:ra_str='08:51:5.20'
2023-10-22 19:55:48,993:DEBUG:Lx200CommandResponder:dec_str="57*26'6.05"
2023-10-22 19:55:49,997:DEBUG:Lx200CommandResponder:ra_str='10:22:29.87'
2023-10-22 19:55:50,006:DEBUG:Lx200CommandResponder:dec_str="60*35'29.43"

And there I see the cause of the issue. Apparently the ra_str reply is sent twice. My guess is that this is a timing issue with two consecutive commands being received to request the telescope RA but I'll dig into my code to make sure that it is not an issue on my side.


Wouter

Read More...