Can't get input shaper setup 'Option 'accel_chip' is not valid in section 'resonance_tester''
I have a USB input shaper that has Klipper flashed (and works fine on my other printer) that I'm trying to get working as a secondary MCU. I have included the same cfg file as what I used on another printer perfectly fine, and am including it in my printer.cfg on the RR. The configuration file looks like this:
Klipper is giving me the error
Option 'accel_chip' is not valid in section 'resonance_tester'
What steps am I missing to get this setup?17 Replies
Worked it out, the RatOS.cfg has it's own resonance_tester section. How do I tell RatOS not to generate that so I can do it myself in my config?
you don't, you just override it
https://os.ratrig.com/docs/configuration/includes-and-overrides
if you want to change something, you just change it in your printer.cfg
Trying to override that section gives me the error above.
If I don't comment out the
resonance_tester
section in RatOS.cfg I get the error.upload your full printer.cfg after overriding it please
What I posted above was the whole thing. Then in printer.cfg it's just
[inlcude pis.cfg]
pis being the name of the file this is in.
Is there an extra thing required to tell it to override a section? Usually I just copy the same header and it does it just fine.nope, just adding it overrides it (as the documentation I linked to earlier shows)
Yeah that's what I thought. I'm wondering then why it doesn't like it here and I have to comment out the RatOS version of this section for it to work.
I tried looking to see if you can only have one of that section but there's nothing that states that.
I don't understand how what you posted is all of it when it doesn't have the ratos.cfg include
Hold on, let me send you the full files. That thing above is just a file called pis.cfg, the main printer.cfg has nothing related to input shaping at all.
This is the printer.cfg
The include is commented out but at the top is
[include pis.cfg]
[include pis.cfg]is commented out
If I uncomment it, and don't uncomment the RatOS resonance_tester section I get the error in the original post.
does it work if you comment out
accel_chip: adxl345
in your PIS.cfg?Hmm... let me see. Ideally I need that line as I have named the chip I want to use (not just using the default).
you didn't name it. you have
[adxl345]
, if you want to name it [adxl345 <NAME>]
Sorry, when I made the post originally I haven't. I since have as that's my preferred way. I removed it as a test to see if that would fix it which it didn't.
Also yes that works without that line.
So I guess I just can't have it named for it to work, which isn't great.
But at least I have a way around it.
So this doesn't actually work if I do it this way. Probably because it's trying to use a sensor that doesn't exist. If I do it my way commenting out the bit in RatOS.cfg and setting up the sensor to be the one configured it works fine.