Hi eng, maxvel is not required, it was a remnant of an older code when I tried position tracking mode.
accel = maxacc.
The code is currently running in speed mode, with this acceleration following the speed command. I just renamed it, in fact the code only works with one kind of acceleration.
I'm sorry, but I also renamed the io pins in udp.comp:
udp.in.xx
udp.out.xx
ps.
In the code I took advantage of the following features of esp32:
four hardware timers up to 25 ns / tic -> step generation for 3 (4) axes
two cores: one deals only with step generation, the other with everything else
FPU -> fast floating point calculation
High cpu speed (240Mhz)
I think it's worth implementing the code on another microcontroller if it has these capabilities. You may want to take advantage of other capabilities that aren't in ep32.