On Sun, 4 Feb 2024 at 17:51, Steffen Möller via Emc-developers <emc-developers@lists.sourceforge.net> wrote:
> I added all in src that ends with .comp or .hal. This is what now happened. I > was a bit surprise by the emphasis on Python. > Copy code > #include "hal.h" > #include <unistd.h> > #include <stdio.h> > #include <stdlib.h> > > static int comp_id; // Component ID > static hal_bit_t *signal; // Pointer to the signal pin This all seems slightly scary, has anyone tried these? I am not 100% sure that you can use stdio.h in realtime code, though that might only be an RTAI kernel mode thing. (looks to be, see for example https://github.com/LinuxCNC/linuxcnc/blob/5e7d654d772b52da7bb703788bf78951a942bc82/src/hal/components/lcd.c#L29 ) So, I for one welcome our new robot overlords. -- 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 Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers