indilib / indi

INDI Core Library Repository
https://www.indilib.org
GNU Lesser General Public License v2.1
377 stars 394 forks source link

enable more Meade commands #2121

Closed peteasa closed 1 month ago

peteasa commented 2 months ago

We have found it convenient to be able to send more Meade commands via the INDI Control Panel The following commands are added

:XSRn.n# :XSDn.n# :XS... these command do not return values: WARNING 564.754999 sec : Executed Meade Command error: -4 :XSD317.2# -> '' WARNING 530.018348 sec : Executed Meade Command error: -4 :XSR315.5# -> ''

:Mgnxxxx# these commands do not return values: WARNING 1022.177341 sec : Executed Meade Command error: -4 :Mgn0200# -> '' WARNING 2372.737374 sec : Executed Meade Command error: -4 :MGN0200# -> ''

:MXxnnnnn# these commands return a character: WARNING 509.919341 sec : Executed Meade Command error: -4 :MXd00100# -> '1'

:SCMM/DD/YY# these commands return a string. Other :Sxxx# commands return a character

knro commented 2 months ago

Thanks, are the warnings in the log present now?

peteasa commented 1 month ago

with my code fixes these commands now work and produce no warnings in the debug log. Here are a set of the commands that I have tested today with the OpenAstroTracker version 1.13.6

Executed Meade Command Immediate: :XSR315.5# Executed Meade Command: 1 :XGR# -> '315.5' Executed Meade Command Immediate: :XSD317# Executed Meade Command: 1 :XGD# -> '317.0' Executed Meade Command Immediate: :Mgn0200# Executed Meade Command: 1 :SC09/25/24# -> '1Updating Planetary Data' Executed Meade Command: 1 :SL10:23:05# -> '1' Executed Meade Command: 1 :Gr# -> '09:34:52' Executed Meade Command: 1 :Gd# -> '+9000'00' Executed Meade Command: 1 :GX# -> 'Tracking,--T---,0,0,3123,093933,+900000,,' getCommandChar 3: :Sg00033# -> '1' getCommandChar 3: :St+05145# -> '1' Executed Meade Command: 1 :St+05145# -> '1'