Comments (7)
If I rename "adxl345-toolboard-sp20_00n1.csv" to "toolboard-sp20_00n1.csv"the files in the /tmp folder, the program works and generate the plot...
from klippain-shaketune.
Hello,
I don't think you are doing something wrong but currently custom named accelerometer doesn't work for the vibration graphs.
So if you have something like [adxl345 whatevername]
, this will not work. Shake&Tune is for now compatible only with vanilla [adxl345]
or [lis2dw]
, etc... without any custom name. But I already have it in the backlog and do plan on working on this subject soon.
The main problem I need to overcome is that whatevername
can be either an adxl345 or a lis2dw or any other Klipper supported accelerometer and it will change the CSV filename. So I need to find a way in my Klipper macro to be able to detect which chip is associated with this custom name in order to pass it to my Python scripts to look for the correct csv filenames and I'm not sure how to do this at the moment...
from klippain-shaketune.
This is my attempt to fix this.
What it does it is checks to see if adxl_y is the same as adxl_x if true then it just does normal operation.
if adxl_y is not the same as adxl_x then it will run X with adxl_x and Y with adxl_y
K-SnT_vibrations - seperate adxl for x and y.txt
from klippain-shaketune.
i've modified is_workflow.py line 139
from:
globbed_files = glob.glob(f'/tmp/{chip_name}-.csv')
to:
globbed_files = glob.glob(f'/tmp/adxl345-{chip_name}-.csv')
now VIBRATIONS_CALIBRATION ACCEL_CHIP=toolboard
works perfectly
from klippain-shaketune.
will this work for lis2dw also, or is adxl fixed in there
from klippain-shaketune.
Hey @Frix-x thanks for this awesome module! Currently this issue also affects bed slingers as well since you need 2 adxls by necessity (one for toolhead and one for the bed).
I'll take a look at the code and see if I can at least fix this for bedflingers (which we could enforce a set "toolhead" and "bed" naming scheme to have it follow a convention S&T can follow
from klippain-shaketune.
Hey @Frix-x thanks for this awesome module! Currently this issue also affects bed slingers as well since you need 2 adxls by necessity (one for toolhead and one for the bed).
I'll take a look at the code and see if I can at least fix this for bedflingers (which we could enforce a set "toolhead" and "bed" naming scheme to have it follow a convention S&T can follow
Thanks for the proposal.
I have a plan already but need to find time to work on it. But to sum up, I want to retrieve the acelerometer type from the Klipper macro by using jinja and looking at the "printer" object in order to send it to the Python script and replace the hardcoded "adxl345" string with this. If you find out how to do this, it would be wonderful and I'll be happy to accept a PR :)
from klippain-shaketune.
Related Issues (20)
- TypeError: find_best_shaper() got an unexpected keyword argument 'shapers' HOT 4
- Error loading template 'gcode_macro AXES_SHAPER_CALIBRATION HOT 5
- After Running AXES_MAP_CALIBRATION i do not get the graphs HOT 7
- None vs none in K-SnT_axis.cfg HOT 1
- Error loading template 'gcode_macro AXES_SHAPER_CALIBRATION HOT 2
- ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. HOT 4
- unexpected keyword argument HOT 5
- Does the Belts graph support four-motor awd? HOT 1
- SET_VELOCITY_LIMIT is deprecated HOT 3
- Shaketune vibration not compiling CSV data into graphs. HOT 1
- BELTS_SHAPER_CALIBRATION: Error running command {shaketune} HOT 4
- Running Command {shaketune}...: Illegal instruction HOT 5
- S&T will not create the graph HOT 3
- S&T new version not generating Graph after running. HOT 5
- AXES_MAP_CALIBRATION not outputing any information HOT 3
- Measure Fan Vibration HOT 4
- AXES_SHAPER_CALIBRATION doesn't generate graph HOT 3
- accel_per_hz support HOT 1
- Добавить в описание по установке пункт: "Обязательно добавить секцию [resonance_tester] в printer.cfg".
- Backup and Uninstall HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klippain-shaketune.