Generate Shaper graph kills printer

When I try to generate shaper graphs, I get an internal error on command: "test_resonances".
26 Replies
Helge Keck
Helge Keck•2d ago
please try to add this to your printer.cfg and try again
[gcode_macro RatOS]
variable_adxl_chip = ["lis2dw toolboard_t0", "lis2dw toolboard_t1"]
[gcode_macro RatOS]
variable_adxl_chip = ["lis2dw toolboard_t0", "lis2dw toolboard_t1"]
@dyocis ohh i see, its a klipper bug
Helge Keck
Helge Keck•2d ago
@miklschmidt found a bug in the klipper CHIPS name parsing
No description
Helge Keck
Helge Keck•2d ago
id doesnt allow to use other chip types than adxl, so atm idex doesnt support lis2dw chips or am i wrong?
dyocis
dyocisOP•2d ago
Ahh, ok. I thought I had run shaper graphs since installing IDEX...Hmm. guess not
Helge Keck
Helge Keck•2d ago
yeah, it looks like current klipper code doesnt allow the use of the orbitool accelerometer chips
dyocis
dyocisOP•2d ago
I know I've run it in hybrid
Helge Keck
Helge Keck•2d ago
thats of course a problem well, it works in single toolhead mode, but for idex we need to switch between the chips and klipper expects or adds the adxl345 prefix to the chip name but you need the lis2dw prefix
dyocis
dyocisOP•2d ago
Makes since. Well, just add it to the list of problems I've created for myself because I can't leave things stock....lol
Helge Keck
Helge Keck•2d ago
i will try to file a bug for klipper, but i cant promise anything
dyocis
dyocisOP•2d ago
Sounds good. I'll test it occasionally and let you know if it gets fixed Should I close this post, or keep it open till it's fixed?
Helge Keck
Helge Keck•2d ago
no, keep it alive please
miklschmidt
miklschmidt•2d ago
@dyocis you can use the realtime analysis tool instead
dyocis
dyocisOP•2d ago
I'm doing that as I type!
miklschmidt
miklschmidt•2d ago
Ah nice! 🙂 GENERATE_RESONANCES AXIS=X and GENERATE_RESONANCES AXIS=Y will do it, two separate macros 🙂 Otherwise it'll be combined and you won't get the shaper results. You'll get a tension comparison instead.
Helge Keck
Helge Keck•2d ago
@dyocis i shared the finding on the klipper discord with theg guy who coded it, but as i said before i cant promise anything. i wouldnt have high hopes for it to be fixed
dyocis
dyocisOP•2d ago
Yea, I saw the debacle around the z hop problem a few weeks ago. I don't have high hopes either. Do the shaper results get saved somewhere or do I just need to look at the realtime graph? I looked in the input shaper folder, but nothing new is in there
miklschmidt
miklschmidt•2d ago
@Helge Keck looks like this was already fixed https://github.com/Klipper3d/klipper/pull/6726
GitHub
resonance_tester: Fix chips selection, add accel_per_hz selection b...
-The current code does not have the option to "live" select a non-adxl345 chips when running TEST_RESONANCES, since it adds the adxl prefix by default. -Added the ability to &...
miklschmidt
miklschmidt•2d ago
You can look at all your macro recordings, just click on "view all macros" Or you can click the link in the notification that pops up when it completes
dyocis
dyocisOP•2d ago
Yea, I figured it out. It's the first time I'm using the macros in the tool, so I'm learning
miklschmidt
miklschmidt•2d ago
The navigation needs a bit of love 😄
Helge Keck
Helge Keck•2d ago
wut
miklschmidt
miklschmidt•2d ago
We can update the pinned commit, but i have not had the opportunity to test the past two months of klipper changes
Helge Keck
Helge Keck•2d ago
ahh, was jsut confused bc his logfile clearly showed this error. so its fixed but not part of RatOS atm, got it
miklschmidt
miklschmidt•2d ago
exactly
dyocis
dyocisOP•2d ago
Would the belt comparison macro be GENERATE_RESONANCES AXIS=XY ? Or two separate sequences with X in one and Y in one?
miklschmidt
miklschmidt•2d ago
GENERATE_RESONANCES AXIS=1,1 and another sequence in the same macro with GENERATE_RESONANCES AXIS=-1,1 For tensioning the Y belts you can do:
T0
G1 Y200 X-50 F36000
GENERATE_RESONANCES AXIS=Y
T0
G1 Y200 X-50 F36000
GENERATE_RESONANCES AXIS=Y
and another sequence with
T1
G1 Y200 X450 F36000
GENERATE_RESONANCES AXIS=Y
T1
G1 Y200 X450 F36000
GENERATE_RESONANCES AXIS=Y
Remember to select the T0 accelerometer for the first sequence and the T1 accelerometer for the second. Those are coordinates for a 400mm, change accordingly for a 300 or 500 🙂 Ie Y in both and X in the latter.
Want results from more Discord servers?
Add your server