aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/shaper_calibrate.py
Commit message (Collapse)AuthorAgeFilesLines
* resonance_tester: Added a new sweeping_vibrations resonance test method (#6723)Dmitry Butyugin2024-12-051-1/+3
| | | | | This adds a new resonance test method that can help if a user has some mechanical problems with the printer. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* shaper_calibrate: Fixed crashes in SHAPER_CALIBRATE and TEST_RESONANCESDmitry Butyugin2024-02-171-2/+4
| | | | | | | Fixed crashes due to wrong parameter passed to the shaper selection function and when the custom FREQ_END is specified. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* scripts: Added shaper tuning parameters to calibrate_shaper scriptDmitry Butyugin2024-02-161-15/+37
| | | | | | | | | | | | | | | The added parameters include square_corner_velocity, shaper frequencies to optimize, input shapers to test, input shaper damping ratio and damping ratios to test. All these options can be useful for fine-tuning the input shapers when the default suggestions generated by the tuning script are not optimal. Also the `SHAPER_CALIBRATE` command was modified to pass some of these parameters to the shaper tuning routine. Specifically, square corner velocity and the maximum tested frequency are used to adjust shaper tuning and maximum acceleration recommendations. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* resonance_tester: Apply input shaper params on SHAPER_CALIBRATEDmitry Butyugin2023-05-251-0/+12
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* shaper_calibrate: Add missing importKevin O'Connor2022-04-231-1/+1
| | | | | | Reported by @Ludy87. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* input_shaper: Define input shapers in a single place in Python codeDmitry Butyugin2021-10-261-121/+32
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* adxl345: Renamed decode_samples and fixed/added checks on empty dataDmitry Butyugin2021-10-131-1/+4
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* resonance_tester: Fixed multi-point resonance testingDmitry Butyugin2021-04-071-1/+1
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* graph_accelerometer: Support axis-level comparison of adxl345 dataDmitry Butyugin2021-03-201-0/+4
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* shaper_calibrate: Reduced min shaper freqs to match max_accel ~= 1500Dmitry Butyugin2021-03-201-6/+6
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* shaper_calibrate: Ignore vibrations below max_psd / 20 thresholdDmitry Butyugin2021-03-201-8/+16
| | | | | | | | | | | The input shaper can only reduce vibrations by 20x. Therefore, the best-case achievable vibrations level is max(psd) / 20. Any vibrations below that level can be ignored for the prupose of input shaper scoring. This allows tuning script to ignore wide tails of resonances, because it is not helpful to try to reduce them with input shaping. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* shaper_calibrate: Estimate max_accel to avoid excessive smoothingDmitry Butyugin2021-03-201-8/+34
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* shaper_calibrate: Choose input shapers accounting smoothingDmitry Butyugin2020-12-221-61/+87
| | | | | | | | | Improved algorithm to choose the 'optimal' shaper frequency taking shaper smoothing into account. This may choose a frequency with slightly more vibrations but less smoothing. Also allow users to limit the maximum input shaper smoothing. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* resonance_tester: Resonance testing and input shaper auto-calibration (#3381)Dmitry Butyugin2020-10-141-0/+382
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>