Tool Changer
23 Oct 2012 15:19 #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 or Create an account to join the conversation.
23 Oct 2012 15:50 - 23 Oct 2012 15:51 #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
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
Last edit: 23 Oct 2012 15:51 by ArcEye.
Please Log in or Create an account to join the conversation.
Time to create page: 0.084 seconds