I know this thread is old, but it shows up at the top in Google search when you're looking for "LinuxCNC skew". I'd like to say that the millkins.c works for me in LinuxCNC 2.8.4.
Steps:
- Download the millkins.c file here:
wiki.linuxcnc.org/cgi-bin/wiki.pl?Contri...y_XY_skew_correction
- In LinuxCNC open up the terminal to compile/install the file. Replace code block below to where actual millkins.c file is located.
Code:
sudo halcompile --install /path/to/millkins.c
- The command above compiles and creates a millkins.so file located at /usr/lib/linuxcnc/modules
- You can go ahead and close the terminal and now open up your hal file. Find the line (should be at the top) "loadrt [KINS]KINEMATICS" and replace with millkins info. Replace #.### in example below with your actual skew factor.
Code:
# Comment out the kinematics in case you want to roll back and add the two lines after installing millkins.so
#loadrt [KINS]KINEMATICS
loadrt millkins
setp millkins.skew #.###
- That's it, but here is the big gotcha: This skew factor will not work when you are jogging! If you actually do a gcode command you should see it work.
Hope this helps for anyone searching this! This has been working great for me as I have a 4'x8' gantry and it is quite difficult to get this perfectly mechanically square. I have been squaring by offsetting the home position of my dual steppers on a single axis, but this is a nice alternative.