unable to apply skew profile

created a skew correction section in the config, saved. used command to send set the skew and apply it to a profile, again saved.
8:52 AM
SAVE_CONFIG
8:52 AM
Skew Correction state has been saved to profile [CaliFlower]
for the current session. The SAVE_CONFIG command will
update the printer config file and restart the printer.
8:52 AM
SKEW_PROFILE SAVE=CaliFlower
8:52 AM
SET_SKEW XY=99.6,99.6,70.29
8:52 AM
SAVE_CONFIG
8:52 AM
Skew Correction state has been saved to profile [CaliFlower]
for the current session. The SAVE_CONFIG command will
update the printer config file and restart the printer.
8:52 AM
SKEW_PROFILE SAVE=CaliFlower
8:52 AM
SET_SKEW XY=99.6,99.6,70.29
I see the original block as well as the new block in the auto generated portion at the bottom. as far as I can tell the profile is properly setup and saved to the config.
[skew_correction CaliFlower]
#xy_skew = -2.220446049250313e-16
#xz_skew = 0.0
#yz_skew = 0.0

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [skew_correction CaliFlower]
#*# xy_skew = -2.220446049250313e-16
#*# xz_skew = 0.0
#*# yz_skew = 0.0
[skew_correction CaliFlower]
#xy_skew = -2.220446049250313e-16
#xz_skew = 0.0
#yz_skew = 0.0

#*# <---------------------- SAVE_CONFIG ---------------------->
#*# DO NOT EDIT THIS BLOCK OR BELOW. The contents are auto-generated.
#*#
#*# [skew_correction CaliFlower]
#*# xy_skew = -2.220446049250313e-16
#*# xz_skew = 0.0
#*# yz_skew = 0.0
following the ratrig setup docs it mentions to uncomment a line referenced a gcode macro variable, but I do not have this section in my config file anywhere. I manually added this line to the macro configuration section
[gcode_macro RatOS]
variable_relative_extrusion: True
...
variable_adaptive_mesh: True
variable_skew_profile: "CaliFlower"
[gcode_macro RatOS]
variable_relative_extrusion: True
...
variable_adaptive_mesh: True
variable_skew_profile: "CaliFlower"
yet no matter what, either during a print or manually applying the skew profile, if I run GET_CURRENT_SKEW klipper reports nothing is applied
Current Printer Skew:
XY Skew: 0.000000 radians, 0.00 degrees
XZ Skew: 0.000000 radians, 0.00 degrees
YZ Skew: 0.000000 radians, 0.00 degrees
Current Printer Skew:
XY Skew: 0.000000 radians, 0.00 degrees
XZ Skew: 0.000000 radians, 0.00 degrees
YZ Skew: 0.000000 radians, 0.00 degrees
the macros file shows that a START PRINT macro should eventually call in the skew profile once the extruder is heated
[gcode_macro _START_PRINT_AFTER_HEATING_EXTRUDER]
gcode:
{% if printer["gcode_macro RatOS"].skew_profile is defined %}
SKEW_PROFILE LOAD={printer["gcode_macro RatOS"].skew_profile}
{% endif %}
[gcode_macro _START_PRINT_AFTER_HEATING_EXTRUDER]
gcode:
{% if printer["gcode_macro RatOS"].skew_profile is defined %}
SKEW_PROFILE LOAD={printer["gcode_macro RatOS"].skew_profile}
{% endif %}
What am I missing?
27 Replies
MDFPereira
MDFPereira4mo ago
hello try renaming this [skew_correction CaliFlower] #xy_skew = -2.220446049250313e-16 #xz_skew = 0.0 #yz_skew = 0.0 use only [skew_correction] remove everything else and only include the variable no need for the _start_print_after_heating_extruder macro if set on variables, the profile should be loaded every single time
Lemcott
LemcottOP4mo ago
What do I put in the variable then? It's asking for a profile name isn't it? also I should point out that the after_heating_extruder is part of the default start_print macro. that is all default setup. removing the profile name and setting the variable to just True and saving, restarting, get_current_skew still shows 0
Lemcott
LemcottOP4mo ago
yeah, I give up. I can not even manually apply a skew profile.
Lemcott
LemcottOP4mo ago
doing these same actions on my normal mainsailOS install on my ender applies and reports as expected so I'm doing the right things, but RatOS is not happy with the same commands.
blacksmithforlife
I have SKEW_PROFILE LOAD=my_skew_profile in my start gcode and then in my printer.cfg
[skew_correction my_skew_profile]
xy_skew = 0.00651604041558
xz_skew = 0.0
yz_skew = 0.0
[skew_correction my_skew_profile]
xy_skew = 0.00651604041558
xz_skew = 0.0
yz_skew = 0.0
Lemcott
LemcottOP4mo ago
even if I manually skew_profile load if I check get current skew right after it still shows 0 what you said is how I had it set up and how it does not work like getting this to work in the start_print macro is now second priority, first is figuring out how to get any skew profile to apply at all
CrashTestCharlie / VC4 400h
Just for laughs, change the profile name to all lower case.
blacksmithforlife
in your logs I see variable_skew_profile = True as the last entry. Not having access to your printer.cfg not sure how you are setting that to True
Lemcott
LemcottOP4mo ago
https://discord.com/channels/582187371529764864/1271116512257773638/1271456240299675731 that was done because MDF suggested removing the profile name, but I wasn't sure what else to set that to if there was not a profile name. I am manually setting it by adding the variable to the gcode macros section and typing it in myself. there was no skew correction section in my cfg in the first place (like the docs imply there should be) also, that variable should not matter if I'm manually "skew_profile load=" we can worry about variables and macros later
Lemcott
LemcottOP4mo ago
nope
blacksmithforlife
try uncommenting lines 736-738, restart klipper, and then try manually loading the skew profile
Lemcott
LemcottOP4mo ago
that manually happens when you apply new values and they get added to the generated config block also that did not fix it WELL I guess klipper doesn't like it's own generated rational values? removing e-16 fixed it, but obviously this gives me crazy values
blacksmithforlife
interesting
Lemcott
LemcottOP4mo ago
I guess I'll just take this as a hint that my skew is too small to worry about fixing or trying to run the califlower calculator in google docs is broken
blacksmithforlife
@Adam - Vector 3D might want to take note
Lemcott
LemcottOP4mo ago
Pretty sure it has been updated with an open format for libre office Also the calculator just sticks out 99.6,99.6,70.29 so it is klipper that gives itself bad values
Adam - Vector 3D
Just did a quick speed read. In RATos the 'correct' way to load the profile is using the macro
Adam - Vector 3D
Configuring RatOS Macros | RatOS
RatOS comes with a bunch of flexible predefined macro's that can be customized via variables and macro hooks.
Adam - Vector 3D
The macro needs to be the name of the profile, not true/false
Lemcott
LemcottOP4mo ago
the macro is working as originally expected to once I removed the e-16
blacksmithforlife
@Adam - Vector 3D I think you might want to put in calculator that if the value is really small (like e-16) then just ignore it
Adam - Vector 3D
Ah ok, yes I see now. @Lemcott could you private DM me your spreadsheet that provided the e-16 result please?
Lemcott
LemcottOP4mo ago
the spreadsheet just output 99.6,99.6,70.29 , it was when I set that skew in klipper that klipper recorded that value. I don't think it is an issue with the spreadsheet, not sure if you still wanna see it
Adam - Vector 3D
Yes please.
MDFPereira
MDFPereira4mo ago
perhaps I did not explain myself clear... The way is to set this on the variables variable_skew_profile: "my_skew" (or whatever name is saved) and the profile will always be loaded on start print without having to change any other macro. including [skew_correction] will make sure is there.
Adam - Vector 3D
yes exactly, the RATos macros.
No description
Want results from more Discord servers?
Add your server