Re: [Emc-developers] Confused about emcmotCommand

2021-12-31 Thread andy pugh
On Fri, 31 Dec 2021 at 17:09, Sebastian Kuzminsky wrote: > > It should probably be a tagged union. > > https://en.m.wikipedia.org/wiki/Tagged_union I think I have used that, without knowing what it was called:

Re: [Emc-developers] Confused about emcmotCommand

2021-12-31 Thread Sebastian Kuzminsky
It should probably be a tagged union. https://en.m.wikipedia.org/wiki/Tagged_union -- Sebastian Kuzminsky On Fri, Dec 31, 2021, 09:22 andy pugh wrote: > > https://github.com/LinuxCNC/linuxcnc/blob/master/src/emc/motion/motion.h#L216 > > Basically the command to be executed goes in the command

[Emc-developers] Confused about emcmotCommand

2021-12-31 Thread andy pugh
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"