- Posts: 19306
- Thank you received: 0
Tool Changer
14 years 1 week ago #25676
by andypugh
Replied by andypugh on topic Re:Tool Changer
ArcEye wrote:
Why have two HAL parsers?
I wouldn't be surprised to find that all HAL commands go through halcmd.That code is part of the command line parsing from halcmd, seems unlikely.A little grepping in the source finds this code that triggered the "Unknown command" error is in src/hal/utils/halcmd.c:
There are some others, if you do a case insensitive search, but equally unlikely
Why have two HAL parsers?
Please Log in to join the conversation.
14 years 1 week ago #25680
by ArcEye
The function parse_cmd1(..) in which this error message occurs, is only referenced inside halcmd.c.
halcmd_parse_line(..) which uses parse_cmd1() looks a likely candidate, but is also only referenced inside halcmd.
The source code is a spaghetti bush, but I haven't found a strand which leads there yet :blink:
Replied by ArcEye on topic Re:Tool Changer
I had thought of that but could not find any calls to halcmd within the /src except from minor uses by halsh.c and halmodule.ccI wouldn't be surprised to find that all HAL commands go through halcmd.
The function parse_cmd1(..) in which this error message occurs, is only referenced inside halcmd.c.
halcmd_parse_line(..) which uses parse_cmd1() looks a likely candidate, but is also only referenced inside halcmd.
The source code is a spaghetti bush, but I haven't found a strand which leads there yet :blink:
Please Log in to join the conversation.
Time to create page: 0.039 seconds
