https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/motion/motion.h#L216

Basically the command to be executed goes in the command field, and
then the system chooses the data fields that it wants to look at.

But it seems rather wasteful. Would it not be more sensible to simply
have "enough" doubles, ints, bools etc for each command, with generic
names ("double_1" for example)

As things stand, every time a new command is added, a few more
variables get added to the struct, to be used once or never every
run....

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to