Hi,
for my 4 axis printer I hacked Marlin and added a new M command (just like setting the fan-speed, i am setting the angle of the new axis). This works very nice, but the problem is that in a G-Code file the command gets executed about 2 layers ahead. I guess that this might be because of the lookahead for circles, but I don't know how to deal with that. Can someone point me into a direction where I can find more information how I can add the feature properly?
In future I will implement it more clean (really as a new axis), but for a first test this was working well enough.
Thank you for your help!