aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/resonance_tester.py
Commit message (Collapse)AuthorAgeFilesLines
* toolhead: Replace max_accel_to_decel with minimum_cruise_ratioKevin O'Connor2024-03-131-5/+5
| | | | | | | | | The user facing max_accel_to_decel setting is complicated and confusing. Replace it with a new minimum_cruise_ratio parameter. Internally this user-facing parameter will calculate the existing low-level "accel_to_decel" mechanism. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* shaper_calibrate: Fixed crashes in SHAPER_CALIBRATE and TEST_RESONANCESDmitry Butyugin2024-02-171-10/+12
| | | | | | | 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-2/+10
| | | | | | | | | | | | | | | 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/+5
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* resonance_tester: Support CHIPS= parameter in SHAPER_CALIBRATE commandDmitry Butyugin2023-05-251-13/+17
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* adxl345: Support recording data from multiple ADXL345's in one run, and ↵Mikkel Schmidt2022-05-231-17/+60
| | | | | | | | | | | more. (#5224) Add PROBE and CHIP to TEST_RESONANCES Since it's possible to specify more than one chip in TEST_RESONANCES the CHIP parameter has been renamed to CHIPS Signed-off-by: Mikkel Schmidt <mikkel.schmidt@gmail.com>
* adxl345: Renamed decode_samples and fixed/added checks on empty dataDmitry Butyugin2021-10-131-3/+6
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* adxl345: Implement timing via new adxl345_status messagesKevin O'Connor2021-08-301-2/+0
| | | | | | | | Query the adxl345 message counter every 100ms so that accurate timing can be obtained during measurements. This allows the adxl345 data to be exported with timestamps while captures are running. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* adxl345: Add new start_internal_client() function and use in callersKevin O'Connor2021-08-301-22/+21
| | | | | | | | Introduce a new start_internal_client() function and change all client code to use that instead of manually calling start_measurements() and finish_measurements(). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* resonance_tester: Use config.getlists() for probe_points config optionKevin O'Connor2021-08-211-10/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* resonance_tester: Arbitrary AXIS in TEST_RESONANCES commandDmitry Butyugin2021-07-081-29/+61
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* resonance_tester: Set max_accel ignoring the limit from the config (#4174)Dmitry Butyugin2021-06-061-15/+23
| | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* gcode: Update gcode descriptions (#4335)Stefan Dej2021-06-021-6/+11
| | | | | | | | | | Add help description to HELP Add help description to RESPOND Add help description to MEASURE_AXES_NOISE, TEST_RESONANCES and SHAPER_CALIBRATE Add help description to PAUSE, RESUME, CLEAR_PAUSE and CANCEL_PRINT Add help description to GET_POSITION Add help description to SET_RETRACTION and GET_RETRACTION Signed-off-by: Stefan Dej <meteyou@gmail.com>
* resonance_tester: Refactored the testing codeDmitry Butyugin2021-04-281-109/+68
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* resonance_tester: Fixed multi-point resonance testingDmitry Butyugin2021-04-071-2/+5
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* resonance_tester: Increase test max_accel to 10K and max_freq to 133 HzDmitry Butyugin2021-02-021-2/+3
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* resonance_tester: Disable input shaping for resonance testingDmitry Butyugin2021-02-021-0/+11
| | | | Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
* shaper_calibrate: Choose input shapers accounting smoothingDmitry Butyugin2020-12-221-7/+12
| | | | | | | | | 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/+303
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>