diff options
author | MRX8024 <57844100+MRX8024@users.noreply.github.com> | 2024-11-13 02:55:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-12 19:55:32 -0500 |
commit | 6d1256ddcc51cc62ab403fdc29d0b2688116a29e (patch) | |
tree | c7720c5ac142fac0d6306cfc38f8bab7869024a9 /docs | |
parent | 2af8d3f1d0d836126cc3447b6530a0107dabf772 (diff) | |
download | kutter-6d1256ddcc51cc62ab403fdc29d0b2688116a29e.tar.gz kutter-6d1256ddcc51cc62ab403fdc29d0b2688116a29e.tar.xz kutter-6d1256ddcc51cc62ab403fdc29d0b2688116a29e.zip |
resonance_tester: Fix chips selection, add accel_per_hz selection (#6726)
Corrected issue where accelerometer names were incorrectly prefixed
with "adxl345", preventing the selection of other chip types when running TEST_RESONANCES.
Implemented support for selecting the `accel_per_hz` parameter when running TEST_RESONANCES.
docs: Update TEST_RESONANCES + SHAPER_CALIBRATE with missing parameters and bracket corrections
Signed-off-by: Maksim Bolgov <maksim8024@gmail.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Config_Changes.md | 4 | ||||
-rw-r--r-- | docs/G-Codes.md | 18 |
2 files changed, 13 insertions, 9 deletions
diff --git a/docs/Config_Changes.md b/docs/Config_Changes.md index cb031ee2..5535dc85 100644 --- a/docs/Config_Changes.md +++ b/docs/Config_Changes.md @@ -8,6 +8,10 @@ All dates in this document are approximate. ## Changes +20241112: Option `CHIPS=<chip_name>` in `TEST_RESONANCES` and +`SHAPER_CALIBRATE` requires specifying the full name(s) of the accel +chip(s). For example, `adxl345 rpi` instead of short name - `rpi`. + 20240912: `SET_PIN`, `SET_SERVO`, `SET_FAN_SPEED`, `M106`, and `M107` commands are now collated. Previously, if many updates to the same object were issued faster than the minimum scheduling time (typically diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 63c84f56..b50f2af9 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -1084,20 +1084,19 @@ is enabled (also see the all enabled accelerometer chips. #### TEST_RESONANCES -`TEST_RESONANCES AXIS=<axis> OUTPUT=<resonances,raw_data> +`TEST_RESONANCES AXIS=<axis> [OUTPUT=<resonances,raw_data>] [NAME=<name>] [FREQ_START=<min_freq>] [FREQ_END=<max_freq>] -[HZ_PER_SEC=<hz_per_sec>] [CHIPS=<adxl345_chip_name>] -[POINT=x,y,z] [INPUT_SHAPING=[<0:1>]]`: Runs the resonance +[ACCEL_PER_HZ=<accel_per_hz>] [HZ_PER_SEC=<hz_per_sec>] [CHIPS=<chip_name>] +[POINT=x,y,z] [INPUT_SHAPING=<0:1>]`: Runs the resonance test in all configured probe points for the requested "axis" and measures the acceleration using the accelerometer chips configured for the respective axis. "axis" can either be X or Y, or specify an arbitrary direction as `AXIS=dx,dy`, where dx and dy are floating point numbers defining a direction vector (e.g. `AXIS=X`, `AXIS=Y`, or `AXIS=1,-1` to define a diagonal direction). Note that `AXIS=dx,dy` -and `AXIS=-dx,-dy` is equivalent. `adxl345_chip_name` can be one or -more configured adxl345 chip,delimited with comma, for example -`CHIPS="adxl345, adxl345 rpi"`. Note that `adxl345` can be omitted from -named adxl345 chips. If POINT is specified it will override the point(s) +and `AXIS=-dx,-dy` is equivalent. `chip_name` can be one or +more configured accel chips, delimited with comma, for example +`CHIPS="adxl345, adxl345 rpi"`. If POINT is specified it will override the point(s) configured in `[resonance_tester]`. If `INPUT_SHAPING=0` or not set(default), disables input shaping for the resonance testing, because it is not valid to run the resonance testing with the input shaper @@ -1114,8 +1113,9 @@ frequency response is calculated (across all probe points) and written into #### SHAPER_CALIBRATE `SHAPER_CALIBRATE [AXIS=<axis>] [NAME=<name>] [FREQ_START=<min_freq>] -[FREQ_END=<max_freq>] [HZ_PER_SEC=<hz_per_sec>] [CHIPS=<adxl345_chip_name>] -[MAX_SMOOTHING=<max_smoothing>]`: Similarly to `TEST_RESONANCES`, runs +[FREQ_END=<max_freq>] [ACCEL_PER_HZ=<accel_per_hz>][HZ_PER_SEC=<hz_per_sec>] +[CHIPS=<chip_name>] [MAX_SMOOTHING=<max_smoothing>] [INPUT_SHAPING=<0:1>]`: +Similarly to `TEST_RESONANCES`, runs the resonance test as configured, and tries to find the optimal parameters for the input shaper for the requested axis (or both X and Y axes if `AXIS` parameter is unset). If `MAX_SMOOTHING` is unset, its |