Fill out above information andin all cases attach yourklippy.logfile (use zip to compress it, if too big). Pasting yourprinter.cfgis not needed Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there
Describe your issue:
…
Trying to set [skew_correction] but when I send command:
Internal error on command:"SET_SKEW"
Traceback (most recent call last):
File "/home/pato/klipper/klippy/gcode.py", line 211, in _process_commands
handler(gcmd)
File "/home/pato/klipper/klippy/gcode.py", line 137, in <lambda>
func = lambda params: origfunc(self._get_extended_params(params))
File "/home/pato/klipper/klippy/extras/skew_correction.py", line 115, in cmd_SET_SKEW
setattr(self, factor, calc_skew_factor(*lengths))
File "/home/pato/klipper/klippy/extras/skew_correction.py", line 15, in calc_skew_factor
side = math.sqrt(2*ac*ac + 2*bd*bd - 4*ad*ad) / 2.
ValueError: math domain error
Transition to shutdown state: Internal error on command:"SET_SKEW"
I am getting these values from the excel calculation sheet provided by Vector3D, the maker of Calilantern, the model I am using to calculate skew.
I noticed that the third value for every plane on his calculations is in the hundreds and not tens. If I take out the one before each third value, it works. Will try to contact the maker of Calilantern to see if he can help me.
Not sure al calculations are correct. Measurements are but the excel document provided by Vector3D might have a bug in it. Checking with developer now. I have the suspicion that it might be related to the fact that I printed the Calilantern model at 200% scale to be more accurate on my 350x350 Voron 2.4.
Thank you. I heard from the developer of the Calilantern and its spreadsheet and it was, as all said, a calculation error in the spreadsheet once the model was scaled to other than 100% which I did.